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 5ADB7A0588; Thu, 16 Apr 2020 08:57:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6726E1DACA; Thu, 16 Apr 2020 08:57:13 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80081.outbound.protection.outlook.com [40.107.8.81]) by dpdk.org (Postfix) with ESMTP id 267221DAC7 for ; Thu, 16 Apr 2020 08:57:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HUjt5P+uO1uJqrAOz/w7+QFVWIABNQP7mRrWr/Nt9iSIwWs4ApfEAHeBYV0vHZEFgpJyDav3kg1tvkPrFIkqu8N9zbtbUi8UpUhBq2UJp7SgRX76ZurnrrJcx1lV94olqjblQsJS9KmCTYcTEB7FRJIJne4Zae6eXgxXOBhUMbAUvU8XCqn04lGaNZH5RdPR6tygjQVbwsI6667lEbgm4tGVmKKWjb0n93jw8Itvu8Z3AepS+QxPcMi4CP0ihQpc49Ca8xMLpeEUx06UOEbhzhMJ4ox+jRe26nDRxwTInEsHBP8pOChg5jYXFcs+gfqQ3GUfh3dg+hx7wV/1t+JScA== 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=QiqkGbF72KN499qMX/I2qr1FF48eoJNHhishDBwMf7w=; b=BUexoW7G54tLex8Dfpd3zPyjq9laTKUtdlg+BMAFGsx49BpamE4YnYbHenGCzdBIlNSkrwDfzsFJZ8kFxO+reW/bKdczoa5qGPagYj1I6CGoQJmSRgpc3IjmLSO9gvBgqM81Fo0oJEt12/szbCpI8PkASs4eprNV0PQDlmOOp/iSIN3cgRXGbbAeXpGYPG4zFtpdJAqHGUC/7cDR3WchxQV+UW6lULLrvTzY1Os9GnqlSEIV/RU/mhq3byj4G5ZwSTNXKp3Wy09dIrVZgJDbI8xaXaKUNDu4fYpWyajWZpSi513YBqOhSND9j06WopZq9O0VgXBFk4lF8LhlLt6uWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QiqkGbF72KN499qMX/I2qr1FF48eoJNHhishDBwMf7w=; b=GaVXDIFEVOLEIxcRE3YN29rXalrG5rEc2V1c+/a/OnWfGfEQqwltNnl01owJeND467IuPyB07VUYeX1AulObU0EcOEwxF4NLKleJZuBN1NYD+zU53cbO1P799vJuJd/0YqLTj/rUbSQNWVuvezw0gY7TyDfEE+oZH3prIM1x3Cw= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (2603:10a6:20b:63::30) by AM6PR05MB4998.eurprd05.prod.outlook.com (2603:10a6:20b:7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.28; Thu, 16 Apr 2020 06:57:10 +0000 Received: from AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22]) by AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22%7]) with mapi id 15.20.2900.028; Thu, 16 Apr 2020 06:57:10 +0000 From: Ori Kam To: Jeff Guo , "bernard.iremonger@intel.com" , "xiaolong.ye@intel.com" , "qi.z.zhang@intel.com" CC: "dev@dpdk.org" , "jingjing.wu@intel.com" , "yahui.cao@intel.com" , "simei.su@intel.com" Thread-Topic: [dpdk-dev v5 1/3] ethdev: add new RSS offload types Thread-Index: AQHWEv4Jj2cKiG8Wa06YftXemJWv26h7Udzg Date: Thu, 16 Apr 2020 06:57:10 +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: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [185.149.253.12] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2c83f18c-bba5-4305-176b-08d7e1d362cc x-ms-traffictypediagnostic: AM6PR05MB4998: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0375972289 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR05MB5176.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(346002)(136003)(396003)(39860400002)(366004)(376002)(52536014)(7696005)(86362001)(5660300002)(186003)(71200400001)(316002)(76116006)(110136005)(4326008)(54906003)(33656002)(2906002)(53546011)(478600001)(26005)(8936002)(9686003)(66446008)(64756008)(66556008)(55016002)(6506007)(81156014)(8676002)(66946007)(66476007)(21314003); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 83HYHsJMt3i3Tv+yJIkjxGGJrY5Xq9RdyofthPAEu5eMIXUbT07lQ1dB03RapgZgNjdNW1dYh249r9YhHgw2XExVVVD76obXMvL1S4ujPg+XebPzC8TOnBpm368keDNNxfoLhBVjl9vWAd4cl1UArH42t3LWWgifICl9sq6JHPlwMmQvdhXNi88hB9jIEcRYD1xTYoExUZC+OlM0DZD1jUzYt0T86o1Zp+EFv9OaK4HC3gr23bjtN9o9iLWCtysyKjm9MGi67mB2cnCBbIdfMZ86eXabzzYyvWVFuIYHqFV28MhdPn13L4ZgC3htLrOB4jmMmY9k+JOqtPpq+zY8PfKLneC+CJsl8MBcxG2VoRUMx02LDkonbg4EXV/3FlZ7BwcN/wFbrcXsW3SjkbMYsCczg6E7ZqAE8Wre8pJsHaNFRtHn1klazLTG5BPaRa6fpi1XhjdY2/RFnkSfMqvQF7PFMGgUmYvwQXpAhY2eteMx7E5KayKdpjZ0IT+xKEmc x-ms-exchange-antispam-messagedata: 97X5mfIwhYrebBBDxQhYgvHUmZUZlGDNDGYzzjWES3hm+md8ZihdldqgSgVgOpSGUrGRe+Udiv0wqTdMT0BajEXPHeiHBrQJBEpp0ObuoNt+P2t+QbZd1igkt9rR37R7HQlJdGrGzq4BIwmDgFknVQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c83f18c-bba5-4305-176b-08d7e1d362cc X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2020 06:57:10.6796 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PBnnzsNGiX3wMj3BsfJfh89RLSG96zpdSOhgoAq1c1cuJveC9C8Jto0J0gwpxgv9o7jJXfmjmptTA1TEXAzpDw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4998 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: Jeff Guo > Sent: Wednesday, April 15, 2020 8:11 PM > To: bernard.iremonger@intel.com; Ori Kam ; > xiaolong.ye@intel.com; qi.z.zhang@intel.com > Cc: dev@dpdk.org; jingjing.wu@intel.com; yahui.cao@intel.com; > simei.su@intel.com; jia.guo@intel.com > 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. > --- Acked-by: Ori Kam Thanks, Ori > 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) > +#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