From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CFF8AA09E8 for ; Tue, 8 Dec 2020 14:38:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C263AC8FA; Tue, 8 Dec 2020 14:38:09 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 32A7DC8FA for ; Tue, 8 Dec 2020 14:38:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607434686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zSzlY9Lo1Tb6lPNNTXG6K0OP1C84Znw0udYn0dFTrjk=; b=FEvBpkscXJCZKWkZwfbHY/m/I9M1yVj3v75C0ws9HGZ1XqFEzS4E0sLM0dOmytAk2gqcGu OS+mXc99ygAz5egLv1V1+chLQ/KRxpqT7iNE4lQ6Vrx6s/qLbGtnohH4XACdJSR4P+Bl64 WlqLB3/q4qEzmERdlqx5YY6DNEejSaM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-11-JEHhMDlAO_alR8konjfKbg-1; Tue, 08 Dec 2020 08:38:04 -0500 X-MC-Unique: JEHhMDlAO_alR8konjfKbg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CD781107ACE3; Tue, 8 Dec 2020 13:38:02 +0000 (UTC) Received: from [10.36.114.230] (ovpn-114-230.ams2.redhat.com [10.36.114.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98A7719D9D; Tue, 8 Dec 2020 13:38:01 +0000 (UTC) To: Viacheslav Ovsiienko , stable@dpdk.org Cc: orika@nvidia.com, Ori Kam References: <1607431635-3030-1-git-send-email-viacheslavo@nvidia.com> From: Kevin Traynor Message-ID: <08f84381-b03b-9817-c65a-440defbc93dd@redhat.com> Date: Tue, 8 Dec 2020 13:38:00 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <1607431635-3030-1-git-send-email-viacheslavo@nvidia.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-stable] [PATCH v2] [18.11] net/mlx5: fix selection between encap and decap X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 08/12/2020 12:47, Viacheslav Ovsiienko wrote: > From: Ori Kam > > [ upstream commit 9e0d81c1a13cac520a535f259e7d3c9132770e14 ] > > The current raw_encap function selects if to decap or encap > based on the egress/ingress attribute. This concepts doesn't work > in case of FDB since all flows are considered ingress. > > To solve this issue we moved to check the encap size. > if the encap size is larger then eth + ipv4 it means we are > trying to encap. > > Fixes: 8ba9eee4ce32 ("net/mlx5: add raw data encap/decap to Direct Verbs") > > Signed-off-by: Ori Kam > Acked-by: Matan Azrad > --- > drivers/net/mlx5/mlx5_flow_dv.c | 28 +++++++++++++--------------- > 1 file changed, 13 insertions(+), 15 deletions(-) Applied, thanks.