From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2986DA04A6; Wed, 9 Feb 2022 09:17:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3DE741101; Wed, 9 Feb 2022 09:17:34 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 54991410FD for ; Wed, 9 Feb 2022 09:17:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644394653; x=1675930653; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Cu3jqXfjftSkrrYxIQrWW6id/yXiUdLnaKRl9ebgoR4=; b=cSL/iU/fQrJXIypRmD/BPDqkOtBCZaNnt36nZf+baUx8T/bBFsHy9ooR N1llxiyAFsNpZPKwQ7xn8hhws9mJXANzqaK7YhxpKCJaaG7CrPhRMXu/v vDRhajNhqvyh6WbAAapxMBTRz8Y3bhTIJRr/XwWFCMZzXeWmUwZOhHxe8 H6nV5v0TbgyszVmsM9Rxsg22vOuSZBQPpL/nCg1qYFDklyLthc0FKErn0 oKhkGyK5Cmtrq1h7nfg1oVJsaI+KWZi+0SlZLdoPOvYrs+bN7obAqb+Jp uJo8eIFED/Z7XiwZzzoQkO4U7DfwRYtSobvNtIZijyvILCe8xAgoR/LZ7 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="273687077" X-IronPort-AV: E=Sophos;i="5.88,355,1635231600"; d="scan'208";a="273687077" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2022 00:17:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,355,1635231600"; d="scan'208";a="482254548" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga003.jf.intel.com with ESMTP; 09 Feb 2022 00:17:30 -0800 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 9 Feb 2022 00:17:29 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 9 Feb 2022 16:17:22 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2308.020; Wed, 9 Feb 2022 16:17:22 +0800 From: "Zhang, Qi Z" To: "Xing, Beilei" , "Wang, Jie1X" , "dev@dpdk.org" CC: "Yang, SteveX" , "orika@nvidia.com" , "Singh, Aman Deep" , "Yigit, Ferruh" , "thomas@monjalon.net" , "andrew.rybchenko@oktetlabs.ru" , "Wu, Jingjing" , "olivier.matz@6wind.com" Subject: RE: [PATCH v4 5/6] net/iavf: support L2TPv2 for AVF HASH Thread-Topic: [PATCH v4 5/6] net/iavf: support L2TPv2 for AVF HASH Thread-Index: AQHYHMdg+WhTvZqK10KwP0F64TC29KyKRh6AgACamZA= Date: Wed, 9 Feb 2022 08:17:22 +0000 Message-ID: <9d760077bc674f6cabc0c55308fa6b4e@intel.com> References: <20220129062434.2455711-1-jie1x.wang@intel.com> <20220208083849.510136-1-jie1x.wang@intel.com> <20220208083849.510136-6-jie1x.wang@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Xing, Beilei > Sent: Wednesday, February 9, 2022 3:02 PM > To: Wang, Jie1X ; dev@dpdk.org > Cc: Yang, SteveX ; orika@nvidia.com; Singh, Aman > Deep ; Yigit, Ferruh ; > thomas@monjalon.net; andrew.rybchenko@oktetlabs.ru; Wu, Jingjing > ; Zhang, Qi Z ; > olivier.matz@6wind.com > Subject: RE: [PATCH v4 5/6] net/iavf: support L2TPv2 for AVF HASH >=20 >=20 >=20 > > -----Original Message----- > > From: Wang, Jie1X > > Sent: Tuesday, February 8, 2022 4:39 PM > > To: dev@dpdk.org > > Cc: Yang, SteveX ; orika@nvidia.com; Singh, > > Aman Deep ; Yigit, Ferruh > > ; thomas@monjalon.net; > > andrew.rybchenko@oktetlabs.ru; Wu, Jingjing ; > > Xing, Beilei ; Zhang, Qi Z > > ; olivier.matz@6wind.com; Wang, Jie1X > > > > Subject: [PATCH v4 5/6] net/iavf: support L2TPv2 for AVF HASH > > > > Add support for PPP over L2TPv2 over UDP protocol and L2TPv2 protocol > > RSS hash based on outer MAC src address and L2TPv2 session ID. > > > > Patterns are listed below: > > eth/ipv4/udp/l2tpv2 > > eth/ipv4/udp/l2tpv2/ppp > > eth/ipv6/udp/l2tpv2 > > eth/ipv6/udp/l2tpv2/ppp > > > > Signed-off-by: Jie Wang > > --- > > doc/guides/rel_notes/release_22_03.rst | 6 ++ > > drivers/net/iavf/iavf.h | 2 + > > drivers/net/iavf/iavf_generic_flow.c | 34 +++++++++++ > > drivers/net/iavf/iavf_generic_flow.h | 6 ++ > > drivers/net/iavf/iavf_hash.c | 83 ++++++++++++++++++++++++-- > > 5 files changed, 127 insertions(+), 4 deletions(-) > > > > diff --git a/doc/guides/rel_notes/release_22_03.rst > > b/doc/guides/rel_notes/release_22_03.rst > > index 9a507ab9ea..0d1e4a0b61 100644 > > --- a/doc/guides/rel_notes/release_22_03.rst > > +++ b/doc/guides/rel_notes/release_22_03.rst > > @@ -64,6 +64,12 @@ New Features > > > > * Added rte_flow support for matching GENEVE packets. > > > > +* **Updated Intel iavf driver.** > > + > > + Added L2TPv2(include PPP over L2TPv2) RSS hash distribute packets > > + based on outer MAC src address and L2TPv2 session ID. >=20 > Add * on the front. >=20 > > + > > + > > Removed Items > > ------------- > > > > diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h index > > 0bb5698583..a01d18e61b 100644 > > --- a/drivers/net/iavf/iavf.h > > +++ b/drivers/net/iavf/iavf.h > > @@ -93,6 +93,8 @@ > > > > #define IAVF_VLAN_TAG_PCP_OFFSET 13 > > >=20 >=20 > <...> >=20 > > +/* L2TPv2 */ > > +#define IAVF_RSS_TYPE_ETH_L2TPV2 (RTE_ETH_RSS_L2TPV2 | \ > > + RTE_ETH_RSS_ETH | \ > > + RTE_ETH_RSS_L2_SRC_ONLY) >=20 > Should we limit with L2_SRC_ONLY? +1, no need to intent to limit the driver's capability, src/dst could be en= abled at the same time.=20 >=20 > > + > > /** > > * Supported pattern for hash. > > * The first member is pattern item type, @@ -547,6 +589,8 @@ static > > struct iavf_pattern_match_item iavf_hash_pattern_list[] =3D { >=20 >=20 > <...> >=20 >=20 > > -- > > 2.25.1 >=20