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 B09E6A0563; Wed, 15 Apr 2020 17:38:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 77B1B1D935; Wed, 15 Apr 2020 17:38:57 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 5080E1D540 for ; Wed, 15 Apr 2020 17:38:54 +0200 (CEST) IronPort-SDR: Uj/WyUBZUyetokLFIbXokCtvoef+KCJs2h+6RzfFqhJckXwQlKd0PgSMiVHtFE/oObemsBfGQg j+4rCWNt4rRw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 08:38:54 -0700 IronPort-SDR: BW/gzbMfvsAj9y9DGIkZmwsDUQAtVorULv6YuuW2SKLpiZgrgrPG0rQfvJ02Jv670fpUkbaen/ w1oJHZVOboaw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,387,1580803200"; d="scan'208";a="273759357" Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by orsmga008.jf.intel.com with ESMTP; 15 Apr 2020 08:38:54 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX108.amr.corp.intel.com (10.22.240.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Apr 2020 08:38:53 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Apr 2020 08:38:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dKINLk6NxBQEwI7yTQ5tCvEC5gbN6tM2yy8evyt2vrnfx8cn1oHIqm1evqEcNn07Z5+Nl9eTvPcco7WyH7kH8Bco/dEJAH9L+6OZIacZvZoi8agu/ZMLIAoeMaiumMa2N2zjeN5fkWie35HGvbO11zljiV0D0RuoLCAD78JwG2GKPpMdznz3ceHfgKFNwx/NFPK/nON87Oax2eKLKFb+OkCKRDwIHrBevW5yj6zYEW4f35qVC6ehCIOxEK+z0ZCI1749BFUuhqF+dXZXGn3Ozhqdyi9LPm+xmhApBB+dg3xCAqQ381td0JJh94XbWmvtpEFCZbmP0k2upkim9UmW0Q== 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-SenderADCheck; bh=gZEbA3yvbpL/CW1YuadY53W/fIYK/sOAHaU7Fvs8qqo=; b=PlADceNrNHoiBxn2QGX6Q+zu4a67Paf0/QIWECCylUGqtGSO7CB4qn3lak8Iw+O2Hn5V1DLfp9YMREyJ3Y7UKzDOGztzZk2VG7fAe90VBips3reGQHMRUfRP4/EDyjnodVwZ6NiO61KDfN1oPdktUcXNDcnvi9Mqp+B0RV0PBcoegtDNRI68LuBzpbC0bqbnb8pNoWb7wd/pi5SY9v1Ea9M1gHdaW37vSSTdJx7lnAyFCgtPyuOTRxFHkbH8Tj0mLKPO1xvA6FNFuGmkfAh0Qe0qSJdWJQ6XTZ6DipZRVqzzMAxDYFFEkpGbU5J4tReR74pPjKONDLt+KU2zvgDcrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gZEbA3yvbpL/CW1YuadY53W/fIYK/sOAHaU7Fvs8qqo=; b=qP9AIsVXiG9+fAe1YlvFN83I/bSZqNuFQKSJ5ocspeyFr0uRkaUBaMzh5xpUhOsEHceFurqKV7K3up7sm3hZi9CgA0n3FwjHNdLqKz8+un7sIhD4/z4Fd3L3QvkoHDn24DulnntTub+SWVBgTDUYATWWpaKCBOwI5DncV9VcAJo= Received: from DM6PR11MB2537.namprd11.prod.outlook.com (2603:10b6:5:cd::16) by DM6PR11MB4515.namprd11.prod.outlook.com (2603:10b6:5:2a9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.18; Wed, 15 Apr 2020 15:38:51 +0000 Received: from DM6PR11MB2537.namprd11.prod.outlook.com ([fe80::7c08:b4ae:e9c2:a4fa]) by DM6PR11MB2537.namprd11.prod.outlook.com ([fe80::7c08:b4ae:e9c2:a4fa%6]) with mapi id 15.20.2900.028; Wed, 15 Apr 2020 15:38:51 +0000 From: "Iremonger, Bernard" To: "Guo, Jia" , "orika@mellanox.com" , "Ye, Xiaolong" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "Wu, Jingjing" , "Cao, Yahui" , "Su, Simei" Thread-Topic: [dpdk-dev v5 1/3] ethdev: add new RSS offload types Thread-Index: AQHWEv4YGlU/AB42Uki0hXSy/NDIqah6UK1A Date: Wed, 15 Apr 2020 15:38:51 +0000 Message-ID: References: <20200318170401.7938-5-jia.guo@intel.com> <20200415171129.86297-1-jia.guo@intel.com> <20200415171129.86297-2-jia.guo@intel.com> In-Reply-To: <20200415171129.86297-2-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=bernard.iremonger@intel.com; x-originating-ip: [192.198.151.165] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1153d34b-8b35-4ace-6137-08d7e1531906 x-ms-traffictypediagnostic: DM6PR11MB4515: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 0374433C81 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB2537.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10019020)(396003)(376002)(366004)(39860400002)(346002)(136003)(4326008)(9686003)(2906002)(478600001)(6636002)(110136005)(54906003)(6506007)(52536014)(53546011)(71200400001)(7696005)(8676002)(66556008)(81156014)(76116006)(66446008)(64756008)(316002)(86362001)(55016002)(66946007)(66476007)(107886003)(186003)(26005)(5660300002)(33656002)(966005)(8936002)(21314003); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 657pnu62kklJXCLhJj9DeYYVH9T5ziqXFaSxYoLbR3KGosj+RRVw9YeG3og/GtIeZbKIJS9EUScs7Szh8CU6CjsmhghzNEgtoLp1Wb/ukGxIGndQprkbtb8ylh1LnBUM6qNkCledhXBMJZv7XzOHq/P+JiIlrWETFUzH9Aa8SSej0qkgCq8QqYn6SGCG9nyDhk0XOsogRb2CxXTuPDKx1beqizEE/f6oqq0YDoHhiqYdYJlZiRgdFWCW0dvys532fJTk5AVGURPV+c2kmfopEDwJ+i+rQ0TRlvLsbTSVx8HNRW99E59om5LoAnbDfDAhmrLLIG4XWpDcR/SKV+7iBnf11aiOI9TgL4NVQxbwKTB1JYnOJtHOf7HDaNQhIw21FjTolSZEUbITv46CX4Pm0+EUkAJ3kqlAmtgp87Z3oZFO0ngxBFgU+AuyzcwDToo9v0CCdMKOjnL7+b1qRA2NkgZBPrDSWMPOPKJjFDRH7skIn37wl9ASSxS2+VIeFrje6HkoHHnRXxi0d7ebTC6E36+fcuWJ4zI7Sed6NEg3Vn0HnTMr8UPPAcgOl1NAQvzu x-ms-exchange-antispam-messagedata: wX/LDZVDnwFqUG5GETh581Il4uemN8qj6635lTBroL4L7t/7fLHFJwVYOdZEW2FBg9trXGvPwLSc3fROz74zv1SxXiPUumeUXsVHnPaE0SfTcB1Yy92I1IejRBgDup2YK5Vv9QnVWqa5DED3qRKngQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 1153d34b-8b35-4ace-6137-08d7e1531906 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2020 15:38:51.3378 (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: Bftd9MNMiDUfUN9xfDJeYJDk3j35QGu30ZDfBO85T70gWGQWIlJpT4fBrX2kGQDQmYkQmt0CNiRxHGMwWe7BzedsZhqsL4ou3GmoEQw2fhk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4515 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-dev v5 1/3] ethdev: add new RSS offload types X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Jeff, > -----Original Message----- > From: Guo, Jia > Sent: Wednesday, April 15, 2020 6:11 PM > To: Iremonger, Bernard ; > orika@mellanox.com; Ye, Xiaolong ; Zhang, Qi Z > > Cc: dev@dpdk.org; Wu, Jingjing ; Cao, Yahui > ; Su, Simei ; Guo, Jia > > Subject: [dpdk-dev v5 1/3] ethdev: add new RSS offload types >=20 > Defines some new RSS offload types for ETH/S_VLAN/C_VLAN/L2TPV3/ > ESP/AH/PFCP/L2_SRC_ONLY/L2_DST_ONLY. >=20 > Signed-off-by: Jeff Guo > Reviewed-by: Qi Zhang > --- > v5->v4: > rename ETH_RSS_ETH_XXX to ETH_RSS_L2_XXX. > --- > lib/librte_ethdev/rte_ethdev.h | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethde= v.h > index d1a593ad1..138c15a16 100644 > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -511,6 +511,13 @@ struct rte_eth_rss_conf { > #define ETH_RSS_GENEVE (1ULL << 20) > #define ETH_RSS_NVGRE (1ULL << 21) > #define ETH_RSS_GTPU (1ULL << 23) > +#define ETH_RSS_ETH (1ULL << 24) > +#define ETH_RSS_S_VLAN (1ULL << 25) > +#define ETH_RSS_C_VLAN (1ULL << 26) > +#define ETH_RSS_ESP (1ULL << 27) > +#define ETH_RSS_AH (1ULL << 28) I have a patch in flight to add ETH_RSS_ESP and ETH_RSS_AH. I have used the same values as you have used. http://patches.dpdk.org/patch/68550/ > +#define ETH_RSS_L2TPV3 (1ULL << 29) > +#define ETH_RSS_PFCP (1ULL << 30) >=20 > /* > * We use the following macros to combine with above ETH_RSS_* for @@ - > 524,7 +531,9 @@ struct rte_eth_rss_conf { > #define ETH_RSS_L3_SRC_ONLY (1ULL << 63) > #define ETH_RSS_L3_DST_ONLY (1ULL << 62) > #define ETH_RSS_L4_SRC_ONLY (1ULL << 61) > -#define ETH_RSS_L4_DST_ONLY (1ULL << 60) > +#define ETH_RSS_L4_DST_ONLY (1ULL << 60) > +#define ETH_RSS_L2_SRC_ONLY (1ULL << 59) > +#define ETH_RSS_L2_DST_ONLY (1ULL << 58) >=20 > /** > * For input set change of hash filter, if SRC_ONLY and DST_ONLY of > -- > 2.20.1 Regards, Bernard.