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 0D347A034F; Wed, 9 Feb 2022 08:43:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E6BD3410FD; Wed, 9 Feb 2022 08:43:58 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 40F61410F3 for ; Wed, 9 Feb 2022 08:43:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644392637; x=1675928637; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=TRGAzQjJ7c94/7vXtRNa4tqzJQRyKxTD8q1ugWJimsk=; b=Cdr3HKpU0pA64co+NrP1g/ImmbFNRZZvtEIQ+LG3whcLORpmioFoJlWn d8G9EMxutDrfzFWHZf+NsDLAU621XtiphIQ9XRsdn3rQw/YogvSiHB0cw HegCUqLffkgLrldM88nIKjZ4VulnEyPlQWl/S6Ai2t6ev5Bkh32Vu3pVC 7xnnFQa+gbHZL42xS/JAKZc/LIrilJZStpiOuyQvy/NMOMok4E0S/iTJH Na8qkQjHcTh8ORmwVDmwfHbppT2CndZS2r3WU468ZJi/JaTSSzvExptJe bnyg0Gdp9B6Ekl4GpIJv7QulZ6HGRsnsRLF/kNexQXaNczHenK/meM/oT w==; X-IronPort-AV: E=McAfee;i="6200,9189,10252"; a="247981344" X-IronPort-AV: E=Sophos;i="5.88,355,1635231600"; d="scan'208";a="247981344" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 23:43:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,355,1635231600"; d="scan'208";a="622189488" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by FMSMGA003.fm.intel.com with ESMTP; 08 Feb 2022 23:43:56 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 8 Feb 2022 23:43:55 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 8 Feb 2022 23:43:55 -0800 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.44) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 8 Feb 2022 23:43:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hn/VmDElDCXklPm1MOJC9BVaOeNKemI5Ghz3Vtq8NiVagU27R7nx6reQvvmkDUR9ExZBSRYpvmYgDo1lC3nz5ePJ3VHqAak26hAWBZBWZyhkoklEEFXwntcXIeTVg6qO7YtlcW5suK2dMxYMvOS6jX1nB5zhz3WRsEkjqBCnN6ffV1RyheGvHZGie3ZnHHcwkL0C0ssBBkajftGsKcQho68pRd4wUPhnJbECOqpNO+HlSDqI/s2iDHEguW0+kafZf9SgA1QJBO4KHDtqDRuC3SVJ0p2PSwr+jmh6kcY7aauqMk71bfqwmMg1fAZKyxZ2xNBqF98tJ0zF+FXyLMnWAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xWykANWnGs4SRH0f9MSCSsBVtvGwGcZcyzKOAOSsdjA=; b=LDzToy6ofR/Vx0j8eh2AqmX6yakeRvN+T/poIiqBDWl9pp3x4RI1uOcJZ8t/A/CCUc9yB6NEhfbaKFGrh/B5UmA1yrDqWuh1yOmV9mMTowxUrgeNOToztUSorbI+Pt2aeZwG6DRwsUpljwhTTUDZu7/WECI+jkYnSzPAXIbkjkXltTwfocVLyk4sjTlxTeOrO1hXzxRce+4DsdCWI2TwiJkjXgQXWuCPevi1uYYyElbZWaBxYsdA+WQJoAfLQ3q3tZL0b5rAHtkFqds1CWgoSSXHg/VrrBEeiFqkMOLx7gZzJy3w4TgT52p8PZVFv0ZKFm8OZFI6yJaY38yR+mhTvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DM8PR11MB5639.namprd11.prod.outlook.com (2603:10b6:8:24::15) by CY4PR1101MB2232.namprd11.prod.outlook.com (2603:10b6:910:21::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Wed, 9 Feb 2022 07:43:52 +0000 Received: from DM8PR11MB5639.namprd11.prod.outlook.com ([fe80::d9b6:bef3:b53b:49ad]) by DM8PR11MB5639.namprd11.prod.outlook.com ([fe80::d9b6:bef3:b53b:49ad%4]) with mapi id 15.20.4951.019; Wed, 9 Feb 2022 07:43:52 +0000 From: "Wang, Jie1X" To: "Xing, Beilei" , "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 Thread-Topic: [PATCH v4 5/6] net/iavf: support L2TPv2 for AVF HASH Thread-Index: AQHYHMdmUIvnlRgn7E2Mb7bFFwlIQayKzDqAgAAKNaA= Date: Wed, 9 Feb 2022 07:43:51 +0000 Message-ID: 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-product: dlpe-windows dlp-version: 11.6.200.16 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8b6faf27-f9c1-4e4e-59ce-08d9eb9feabc x-ms-traffictypediagnostic: CY4PR1101MB2232:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SjLcK53rVnPSMRq32XFbUwBnCcNuRYortUB7SMR0FnqwvOY0FFQ2kK0Tcad9WkOaHItDFYdfoWqyOAsonfhmgM5PQkVgfY44dssafZ/GOdnZnsZkb08KFhmCviwhgB+01F04tQHXHQV5kMiwNWULzRaijpVphlFEP/Qrjez3reI1bvUNXyBkVQFFMQ1eSkIbWerbxRFNSvaV8iTkZxCEXpPTlherkq0dxW/eofXea0485w6E1bPrkV2BDZhIYLT5lJUhXKUcS7/gF/TcOLnve6u7JAR9ejTBjwu5HmcBgQxG3KSfLZcBmyotYlstNV6ZL6IgRW2JUJ9rCWJJWUpgQ1UgbBs85HRdfjIm1eg/pI642sR1bsKDu6Ed+kbnCMf+4LpoYcRWe8GJTGjnu3xCIbMzMBLWDsjVhvT543sKgKGek4SKF0YHXz5VBWPUWHoWicmxzazKrFyRhu7C1+T1tOTu0dWkGj2bJgGp33Nqeqfs66hBOlvzrQe0qZZC5G3MxNacmjhTeiW06FtqD66xWD8UYs/PIyu0j62NhyVI9BbA73F+6snkK/WT2rqh5Ef2bdaEROjTsrWu/CFuy8vau2iKNqX9AG13YelzAM1PHU26QiBvsxxX/lpLmNlEiGOG7Gg+AEBjwjhLl5AufBrvXgw/AlwylQUtvcAdy4hv5ryVbN39MIaTRaDNpEbnMwx99lN3h458twZfAvffSszv4g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM8PR11MB5639.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(52536014)(6506007)(5660300002)(82960400001)(38070700005)(83380400001)(9686003)(53546011)(71200400001)(7696005)(38100700002)(122000001)(66476007)(33656002)(316002)(8676002)(110136005)(54906003)(26005)(508600001)(8936002)(186003)(4326008)(55016003)(86362001)(76116006)(64756008)(66946007)(66446008)(2906002)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cCqi7KEWCko8l/zYWnyv9XgC+sFq6FPCZJgBCswwXJ///a3UfObjGDuAdjyj?= =?us-ascii?Q?PMA7pTTIEyMruul1tSmLujALtGYYVECCKQF6EnBdFUF8sbpMd7R2fjj+uWGA?= =?us-ascii?Q?syBTNt3LLRQycSTiGVE7X6IqkH06XpGntSBu2lW2C+OlxXDJuWZGMrYJh9nC?= =?us-ascii?Q?BDJeFIHxirch33NEgVBTBhXhiLFRNd54V538497XQ5xTDPxhXvT7L8mIUBZF?= =?us-ascii?Q?zCbHpWaWcI8bJLBMX8aPtpCxdlF1kQuqTvnRzz+2/CtZLyIZ+GTDQgZUSKGY?= =?us-ascii?Q?RUjo8wxdwWULHw6hED671NPTDk+ZaS8b5a++4TaYZMegU+ddD98uqgK8zHA9?= =?us-ascii?Q?CNAoDC6KmUhGwdIFQNoHlpm3juDH5ti+bgswnbq4eTR7/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+kKyhe6lqNRrwgxnWBfCBTH/L8ntE5HV90bknTQvy1q1g41b6/2?= =?us-ascii?Q?9jbyXE9TnHr7FwxBZMn2X9GSNiFaGTd/eOENsdRztCrrQxZzxkx8FyT8rj7V?= =?us-ascii?Q?N5BeZnmdz4tKWMQevDx4fQ4lPQBoCZk6NnFp3e6UIhxkpQqPHXhwVSDURnMu?= =?us-ascii?Q?3xftiuyKdn8jHM65G86PXl91McJDvpVq0Bc7LV/LFB9fXkCh5ols77jyskhp?= =?us-ascii?Q?BT1KzVrlXaUjMstT+TJ7KiF/lcq3AqobarAA4PGPtoais27PeaGwDh9CZLfN?= =?us-ascii?Q?4B1PW0q8CbaogMJB6L7NsyVd6P2Fhe3Vd+ZagBdpE/6FyWIiwcHWr5HA04Kr?= =?us-ascii?Q?YQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM8PR11MB5639.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b6faf27-f9c1-4e4e-59ce-08d9eb9feabc X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2022 07:43:51.8769 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: g5ZUPvFXgimQ1Vt4tRUJGb1WzFtC1aVR9kYAp9rnPhvs8tmpG6zId7DNWgpsrN/lh9DetTPWNV53sv5C7Pevlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2232 X-OriginatorOrg: intel.com 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 I'll update it. > > + > > + > > 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? >=20 In the requirement, it only requires MAC SA to be used as RSS hash input se= t. > > + > > /** > > * 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