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 3C1D0A0577; Tue, 7 Apr 2020 19:02:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1ECF61BEE6; Tue, 7 Apr 2020 19:02:57 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 97F191BEE1 for ; Tue, 7 Apr 2020 19:02:55 +0200 (CEST) IronPort-SDR: A8wK7Mk2iBrpBG1mFhni9xRe/xrn+HgejQ8qlTad/k0o6N0+ajz9Ji8Ly1suTAe7qnIglSp8rA XVUDjuaQkW4w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2020 10:02:25 -0700 IronPort-SDR: QlG8k2q9II588z8Nkq9DpPWGNPTHtFUDRbz88ZWuR8izIwCe0Fu4edhnk1y2GjEV6NJ7WMWbnC RmdG1QRrTjVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,355,1580803200"; d="scan'208";a="254517925" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga006.jf.intel.com with ESMTP; 07 Apr 2020 10:02:25 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Apr 2020 10:02:25 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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.1713.5; Tue, 7 Apr 2020 10:02:24 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 7 Apr 2020 10:02:24 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.57) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Apr 2020 10:02:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SRILUiFJPHVfwFXtcuyA63jr4k7LjWhc5/pemcP+8QE6iLs8LjsidHJ6HRpBwKNUEjqH+vfnKhPxVgfu7OcZmf0oMw4YRWqnP2Ou1owxdkviVDtqsQslTzP6/67U9RN3zpOdCCVLQ6lTOEBYtHY1ZUFwVgdDd+thMnFN7lCX9Dwp39ZHckpd9OZrEyxBjl7gTP2iJVQB2pMfn2Juk9l3mCtr8RNwv1IOcOPSfo4l2unyaAFd6QhF4MjhwYITsf7H+/qswPwPhyp7xfX/idj9bCspDHx1+jrLUorEp7uOyodumWdIIhGPqXDc0n/8e4pZx72iXeYZ3pt4DVf8EXSXTw== 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=WtOluD1s/ZhuINQgTg2cBl7m+yqJyQEL0ZTeWsQiKWY=; b=gjiTYRz1ApGqnvyUDIL81z6M/q/R53+Y87bNNp8tSpWOmQYl3FST33quzOWwZPgUFg1uYV1GyC7PV0BzOGZoNWwNIvg9A3xInkrERMakiG+NqlvA/OnL1kHSRwyRiBsmzqaSuSVzNhD1XSnF6JIAylJRhSpUaLrJrUkw7LeIEaJJ0NPBZk5R9++7HRIj9F81c+t4hfURUh2OSE9uO1NL2A1Gqx/lrQbEzYnBOX1y0ka9ZqdR5x8nn7M4h7HNcX9dFOCri2uda5xJ/W8R+MS+SWrU4MJI4jr5L2Bo+TR6JhAM8zaBWe+lZ8AXkVdJeV7GPw4ZPJ6XEgINv6Gh3RpyIA== 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=WtOluD1s/ZhuINQgTg2cBl7m+yqJyQEL0ZTeWsQiKWY=; b=NKeBiSqtWEpHkTJo9st9hSyptHq1r55UBMzRq9bIQ53jNEbZZcEVZjS9smBNRy+1IE5eYbhxH8AZ0ww9Ue/vJoFNf9jfGl5qicy/U03aVoeUtj16t4ue2fX/L0DvNpLA9gHC3D0oWcP0zLQYD1lqL4FUmSd7DScRK9yFcmn+Sx0= Received: from DM6PR11MB2537.namprd11.prod.outlook.com (2603:10b6:5:cd::16) by DM6PR11MB4546.namprd11.prod.outlook.com (2603:10b6:5:2a7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Tue, 7 Apr 2020 17:02:11 +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.2878.018; Tue, 7 Apr 2020 17:02:10 +0000 From: "Iremonger, Bernard" To: "Guo, Jia" , "Ye, Xiaolong" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "Wu, Jingjing" , "Cao, Yahui" , "Su, Simei" , "Guo, Jia" Thread-Topic: [dpdk-dev] [dpdk-dev v2 1/4] ethdev: add new RSS offload types Thread-Index: AQHWA0KS7hidZ6UhIE27ZqoZ5FxwkKht9SiQ Date: Tue, 7 Apr 2020 17:02:10 +0000 Message-ID: References: <20200318170401.7938-5-jia.guo@intel.com> <20200326164039.36687-1-jia.guo@intel.com> <20200326164039.36687-2-jia.guo@intel.com> In-Reply-To: <20200326164039.36687-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: [86.45.36.39] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b50fc616-e24e-46a8-ff74-08d7db1569a7 x-ms-traffictypediagnostic: DM6PR11MB4546: 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: 036614DD9C 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)(39860400002)(396003)(366004)(346002)(136003)(376002)(26005)(8936002)(107886003)(86362001)(52536014)(110136005)(478600001)(71200400001)(66556008)(33656002)(66446008)(64756008)(81166006)(54906003)(316002)(81156014)(8676002)(66476007)(4326008)(53546011)(186003)(7696005)(5660300002)(66946007)(76116006)(55016002)(9686003)(6506007)(2906002)(6636002); DIR:OUT; SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oAe4IEvZ8pFsX9mDwJAL4VoSQhVk4rBWrjYuH0MUC76DSr2sc95xZdlbelVQfzMr6JJxMjdONkOEWKC3Sy9FBOZk34FlyK02JTFG0GcjCBwgvQc/9QrWxETfzSTn56GWf+ZVvChS7N1RLWAU/LKuqc0FDcUBl78NPVZ4hAEWXMc38jeEaFjDlfhe/UxWGOyMgkREoSWT2s+rXrzBBqbL08MK8dVvSMU6VepjGvUDXd3+WwANn2EUrGgDD56vDhNwwJMY4aVypR6h8Tv6k/E+3stTrIqo9iNpAgPzYm8Qt/ycCAX3715Y39lYnW89BGHnMkSGklYCPTP/0RPcqlxsvf9O7FliRX25+LmWwvgRrKc4DUTQfZgDNt2BbOhflgoVkfk7lWJtVOj2A98s5MzXzyStzzS60KwGSlR0mMm9irKAF3OyxcIEp9a0kjgC5q+A x-ms-exchange-antispam-messagedata: +Mr2QGA79p9xbV86SZI640PZ/hxw86VpG9OIVH6NQXdkJCRHVAtdAW0cSBspAUMUF/cfDg3os/QB6xg+d5an9MlEtLvBtPDagTJmXgmbJKiY1+GcQ/VuF4M06Xt97L7JnvygI/DqugOy67iQTNng7w== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b50fc616-e24e-46a8-ff74-08d7db1569a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2020 17:02:10.5580 (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: BaXxepHJ4N9LvlRICkLTswcuWx4E6FFOQxA5wuWCx4BV3OpOLgnt8IUIb5yM0LVSiBSR1z47Jau0zLZdEBZu8soXncK7xY0DMpuCKV9nAz4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4546 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-dev v2 1/4] 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: dev On Behalf Of Jeff Guo > Sent: Thursday, March 26, 2020 4:41 PM > To: Ye, Xiaolong ; Zhang, Qi Z > > Cc: dev@dpdk.org; Wu, Jingjing ; Cao, Yahui > ; Su, Simei ; Guo, Jia > > Subject: [dpdk-dev] [dpdk-dev v2 1/4] ethdev: add new RSS offload types >=20 > Defines some new RSS offload types for ETH/SVLAN/CVLAN/GTPU/L2TPV3/ > ESP/AH/PFCP. >=20 > Signed-off-by: Jeff Guo > --- > v1: > 1.refine some rte eth rss offload types. > --- > 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..29cdf07cd 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_IPSEC_ESP (1ULL << 27) > +#define ETH_RSS_IPSEC_AH (1ULL << 28) Is IPSEC needed in above ESP and AH macros? Would ETH_RSS_ESP and ETH_RSS_AH be sufficient ? > +#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_ETH_SRC_ONLY (1ULL << 59) > +#define ETH_RSS_ETH_DST_ONLY (1ULL << 58) >=20 > /** > * For input set change of hash filter, if SRC_ONLY and DST_ONLY of > -- > 2.20.1 Regards, Bernard.