From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 550034C94; Mon, 21 Jan 2019 07:45:27 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2019 22:45:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,502,1539673200"; d="scan'208";a="313460343" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga005.fm.intel.com with ESMTP; 20 Jan 2019 22:45:26 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 20 Jan 2019 22:45:26 -0800 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 20 Jan 2019 22:45:26 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.63]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.224]) with mapi id 14.03.0415.000; Mon, 21 Jan 2019 14:45:24 +0800 From: "Hu, Jiayu" To: Andrew Rybchenko CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v3] gso: fix VxLAN/GRE tunnel checks Thread-Index: AQHUsVSUm1oN3y7vmkaMuPJPcY87Q6W5Rq9A Date: Mon, 21 Jan 2019 06:45:23 +0000 Message-ID: References: <1547818111-21817-1-git-send-email-arybchenko@solarflare.com> <1548052958-9943-1-git-send-email-arybchenko@solarflare.com> In-Reply-To: <1548052958-9943-1-git-send-email-arybchenko@solarflare.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmQwNjQwYzktMDMyYS00NzNlLWJhODUtNTI1MzA4NTliZjk0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMTBGOVB3dkUwaTdlaU5EOEtTV0hiYnJMc1Z2UmFteXFuV3NVVmpqUlRjZnREWGQ3R0FJWXEwSlp1dFdkSUZTOSJ9 x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH v3] gso: fix VxLAN/GRE tunnel checks 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: , X-List-Received-Date: Mon, 21 Jan 2019 06:45:28 -0000 > -----Original Message----- > From: Andrew Rybchenko [mailto:arybchenko@solarflare.com] > Sent: Monday, January 21, 2019 2:43 PM > To: Hu, Jiayu > Cc: dev@dpdk.org; stable@dpdk.org > Subject: [PATCH v3] gso: fix VxLAN/GRE tunnel checks >=20 > Tunnel type is an enum in PKT_TX_TUNNEL_MASK bits. > As the result, for example, IPIP or MPLSinUDP tunnel packets may be > incorrectly treated internally as VXLAN. >=20 > Fixes: b058d92ea95d ("gso: support VxLAN GSO") > Fixes: 70e737e448c7 ("gso: support GRE GSO") > Cc: stable@dpdk.org >=20 > Signed-off-by: Andrew Rybchenko > --- > lib/librte_gso/gso_common.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/lib/librte_gso/gso_common.h b/lib/librte_gso/gso_common.h > index 6cd764ff5..b6ff1b886 100644 > --- a/lib/librte_gso/gso_common.h > +++ b/lib/librte_gso/gso_common.h > @@ -22,12 +22,12 @@ > (PKT_TX_TCP_SEG | PKT_TX_IPV4)) >=20 > #define IS_IPV4_VXLAN_TCP4(flag) (((flag) & (PKT_TX_TCP_SEG | > PKT_TX_IPV4 | \ > - PKT_TX_OUTER_IPV4 | > PKT_TX_TUNNEL_VXLAN)) =3D=3D \ > + PKT_TX_OUTER_IPV4 | > PKT_TX_TUNNEL_MASK)) =3D=3D \ > (PKT_TX_TCP_SEG | PKT_TX_IPV4 | PKT_TX_OUTER_IPV4 | > \ > PKT_TX_TUNNEL_VXLAN)) >=20 > #define IS_IPV4_GRE_TCP4(flag) (((flag) & (PKT_TX_TCP_SEG | > PKT_TX_IPV4 | \ > - PKT_TX_OUTER_IPV4 | > PKT_TX_TUNNEL_GRE)) =3D=3D \ > + PKT_TX_OUTER_IPV4 | > PKT_TX_TUNNEL_MASK)) =3D=3D \ > (PKT_TX_TCP_SEG | PKT_TX_IPV4 | PKT_TX_OUTER_IPV4 | > \ > PKT_TX_TUNNEL_GRE)) >=20 > -- > 2.17.1 Acked-by: Jiayu Hu