From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0043.outbound.protection.outlook.com [104.47.32.43]) by dpdk.org (Postfix) with ESMTP id BDC531B21E for ; Thu, 28 Sep 2017 13:24:26 +0200 (CEST) Received: from BN3PR03CA0074.namprd03.prod.outlook.com (10.167.1.162) by CY1PR03MB2364.namprd03.prod.outlook.com (10.166.207.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 28 Sep 2017 11:24:12 +0000 Received: from BY2FFO11OLC001.protection.gbl (2a01:111:f400:7c0c::114) by BN3PR03CA0074.outlook.office365.com (2a01:111:e400:7a4d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Thu, 28 Sep 2017 11:24:12 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC001.mail.protection.outlook.com (10.1.15.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.56.11 via Frontend Transport; Thu, 28 Sep 2017 11:24:11 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8SBMpGA016035; Thu, 28 Sep 2017 04:24:08 -0700 From: Shreyansh Jain To: CC: , Date: Thu, 28 Sep 2017 17:03:38 +0530 Message-ID: <20170928113344.12248-35-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170928113344.12248-1-shreyansh.jain@nxp.com> References: <20170909112132.13936-1-shreyansh.jain@nxp.com> <20170928113344.12248-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131510714519997653; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(346002)(376002)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(86362001)(105606002)(81166006)(81156014)(33646002)(8676002)(8656003)(2351001)(106466001)(50226002)(53936002)(4326008)(97736004)(104016004)(54906003)(16586007)(47776003)(316002)(50466002)(48376002)(189998001)(5660300001)(2950100002)(6916009)(2906002)(5003940100001)(8936002)(68736007)(6666003)(356003)(36756003)(85426001)(50986999)(76176999)(77096006)(305945005)(498600001)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2364; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC001; 1:pc3Gepbq1lSEv341h5W1sdKuL0qUN6SF0zbEC6zD7Cwfg7x6VRHwxy2ujOBjSO/KWXDw7xqfaChTZGtNCvvePx/Pp42D3/lk8GORuo8Ts80UmCD8ampKQF9nbcDStqa9 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 57ee48b7-09be-48ad-e07e-08d506637180 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:CY1PR03MB2364; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2364; 3:buy5uF+BCX2PGNEAy/G+Uu1o1ifx5wwEH8o/AUgSc9KeCTN64KE/lnJxKG34vUYTHVzSs1wqxKit7amJraH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m/bsarNfREWqG9LJwDrU4mym3AS/hE4OnBswSUzl8noXQFI0BAcMNPXoqb9MeRmimqa9ctkNanQxKEFTerG13Gz9FvlhIz99PR3m9pYxP52GpRlsI50IrTCd1VUHVf7DMZJ7yGQrUe1cGWVk+yo9g= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123565025)(20161123561025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2364; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2364; X-Forefront-PRVS: 0444EB1997 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2364; 23:gaQCQZkynM2VyE8pBZwtiL2xPbQBydbQl8qLYlGmC?= =?us-ascii?Q?rEMav0+zUnoRIY9mBNNodBXVMifhEvo/uJLIyo2XwveoL4n83k5CT06uZ7Bm?= =?us-ascii?Q?HBJ2dcEXTKSNtUb0Od+v+SJyTudJtUEEFkOEgULjbIWr9of5Afwc7W4QMX09?= =?us-ascii?Q?spNSccGNCd41yptnoc1TKmAG0odKoQT0IHLnEaYD8qjeNcGdxYoWy4C+fO6P?= =?us-ascii?Q?1viwISP9I9KBNr6pHqZskkO8lEjnU/yvtyPz2U9dc/+ef7lA78kx4b/DqzWS?= =?us-ascii?Q?T0eSbLVUksl96iGXQvoAdmmlcuAa/B9lCjASH9AGvJSfTo5APe1tMYqP1GXe?= =?us-ascii?Q?k3GVXAxrvdGGIUVPefYkRSQpxemYczxv5mqerhcxMdE3r+sjBLAnluzevOya?= =?us-ascii?Q?Rc2OOC1VX3Um9zniMcophK0pcnn3rS8oisTQa17Rt6MO4QGazwTsMDyklZxW?= =?us-ascii?Q?tgTaxsPCx047f1hwI68AKO/SNCYD/brRUNB+KyVDTeTR1+tmnMQS7pJz1B21?= =?us-ascii?Q?dS2NvmooDZTHlqIBT7gnEy/vGwzJ5OMN3h6ltdoygzZxcQiZmAmk6Q6Jyo1a?= =?us-ascii?Q?9CI2s0kGC8lAcLiDes+sm71pioJYHY+yBix3/xefWBAjJiYNqfrpmvRK2PIV?= =?us-ascii?Q?4sI2r+Q+7vPonp4/C6kh2C6qwPlbVk0t6uFsi37OWvfGHLf0n5TtgelUFUTL?= =?us-ascii?Q?OqCyLWkUrLHMgTUteH3XNXOebHwDLZTLBW8IglFTN4IemsKCwroqIAjVSkGT?= =?us-ascii?Q?TDVkTdVjnp+h40eunzyaU+F9ab4HoORAObnKJamZkoXwmpStSlmFR6he+cOn?= =?us-ascii?Q?ojJaHa1MGB98JFGfaANfyRgh+kt7faFGNj9ir1IK6HVNTGnzxHHFx7lazlxy?= =?us-ascii?Q?J/y5/TlD8QMw1hB6zuNcd3Y2HxvOR5bAZMf893th6ccPUv3Ncrj7xENuKju2?= =?us-ascii?Q?GVGrwAvntaJLlSUUVuFieVMyVmNoosekLpPcob11UjmoAUZpDbxhySJwSPfd?= =?us-ascii?Q?PcAYHhRQ9Rug3iEHfitTXshnhCBj/IYniBimSPT+PKIh/ZOsNwyLcMhtiGKI?= =?us-ascii?Q?5AtxdQmRKrvULdO9Z2Jd03DNSNk6MYi93Q2AfUur0cUIxHNKcE6hqF1wZV/M?= =?us-ascii?Q?lcJyVa4eUeQVdIyW9g8SDiuT5d+piXbnVTkFUsHcuMZljjgHKMFgf8q4gT/3?= =?us-ascii?Q?/WuHmw0/l8vxNdro5BE1JT/XwdgNNwIkc8Q?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2364; 6:rL+cBIC85ZdgyslCjwHiTXdBdIM+K/3PwMtu20PRQalKbrughqF1nPB8yefTXaDVc7a2bqfaOUXTZnPAIbIXwIVGKIaw1svg/Maz4/+ZnnUhDtQJfFHYzE4rhf7UCeeXnkkPKfwUT0XRogAxQY6IcIE+i5RhmPMGFl0Cgq4jMDJTHeaepX5zEuCtZhBbWQHsNAdZAZEtwcvVWGk48084qgRP6NISFjpDdWDY3+CDsDbYQknYlWp+nDfqu0w4ivOM1tjkerR0vmdN/gLyCAnt1ET7MfoXql29OJ2egomJXi+BloXADWBbUFlZNWT5WEcqaG7DwXppQoNrlHZUJcfCgg==; 5:sMsv/quRjs+ge9+uUmKbNSXnITik9qzRYJj/wfaNv/x/2gkPsxOts1njaxZq0S6XBftSiQv0SbZu7qQp7NQsMe6XtxJPODuSpbKcBrkXxCg5LR3zA663btJvrYg9OP3f2QGIx3/VbbH8YaiTUex65g==; 24:FVCK3gqzmIaPwB+F2DnUHyKDorn70F49teA+xnWyzpiOH8x8YBm3epXNmBXmKi5vbYvh3Fd+AKFInwyxMZdVeNG2A7LXJ6HTq1Pu9mvyxww=; 7:aqA9eZ7PBQWlN4lYie+xgv4SgTZipTYhHdkWxDtMDdlozMTXuf6R6g0PouFGmjonTkDxpIu4C0VKUkIuhpvtRdKINxXNhVoDg9rqZDNEN19bxL0mZPF1S5O1NSYaBBiXc+hjwTvTwGL4Y2E2iB9txC3urT+CBDN929tEpiBPXEz+ktlDtYHNwj3xinyujoxqSJpCzj0iaI/spcX+oRkujS/qdLPA+touNa19DCsOgX4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 11:24:11.1417 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2364 Subject: [dpdk-dev] [PATCH v5 34/40] net/dpaa: support hashed RSS 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: , X-List-Received-Date: Thu, 28 Sep 2017 11:24:27 -0000 Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 1 + drivers/net/dpaa/dpaa_ethdev.h | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index ebceb8d..5860dfa 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -157,6 +157,7 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, dev_info->max_hash_mac_addrs = 0; dev_info->max_vfs = 0; dev_info->max_vmdq_pools = ETH_16_POOLS; + dev_info->flow_type_rss_offloads = DPAA_RSS_OFFLOAD_ALL; dev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G); } diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index 2f25acb..e1e062e 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -88,6 +88,16 @@ #define DPAA_DEBUG_FQ_RX_ERROR 0 #define DPAA_DEBUG_FQ_TX_ERROR 1 +#define DPAA_RSS_OFFLOAD_ALL ( \ + ETH_RSS_FRAG_IPV4 | \ + ETH_RSS_NONFRAG_IPV4_TCP | \ + ETH_RSS_NONFRAG_IPV4_UDP | \ + ETH_RSS_NONFRAG_IPV4_SCTP | \ + ETH_RSS_FRAG_IPV6 | \ + ETH_RSS_NONFRAG_IPV6_TCP | \ + ETH_RSS_NONFRAG_IPV6_UDP | \ + ETH_RSS_NONFRAG_IPV6_SCTP) + #define DPAA_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \ PKT_TX_TCP_CKSUM | \ -- 2.9.3