From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0068.outbound.protection.outlook.com [104.47.40.68]) by dpdk.org (Postfix) with ESMTP id 4CF3399F0 for ; Wed, 23 Aug 2017 16:03:37 +0200 (CEST) Received: from BN6PR03CA0058.namprd03.prod.outlook.com (10.173.137.20) by CY1PR03MB2265.namprd03.prod.outlook.com (10.166.207.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Wed, 23 Aug 2017 14:03:35 +0000 Received: from BY2FFO11FD034.protection.gbl (2a01:111:f400:7c0c::181) by BN6PR03CA0058.outlook.office365.com (2603:10b6:404:4c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18 via Frontend Transport; Wed, 23 Aug 2017 14:03:35 +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 BY2FFO11FD034.mail.protection.outlook.com (10.1.14.219) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Wed, 23 Aug 2017 14:03:34 +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 v7NE2Q3L004389; Wed, 23 Aug 2017 07:03:32 -0700 From: Shreyansh Jain To: CC: , Date: Wed, 23 Aug 2017 19:42:08 +0530 Message-ID: <20170823141213.25476-36-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170823141213.25476-1-shreyansh.jain@nxp.com> References: <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> <20170823141213.25476-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131479706151347254; (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)(336005)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(36756003)(8676002)(356003)(498600001)(85426001)(81156014)(68736007)(81166006)(50466002)(6666003)(97736004)(53936002)(48376002)(50226002)(86362001)(8936002)(110136004)(305945005)(54906002)(5660300001)(50986999)(76176999)(626005)(6916009)(33646002)(4326008)(47776003)(1076002)(2906002)(104016004)(5003940100001)(77096006)(189998001)(2351001)(105606002)(106466001)(2950100002)(8656003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2265; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD034; 1:f6i2sOtqihGkrMcMh5BG95xu6QK/sr2qgNn+r9gKvyy1nlMNbv2kbdCYdTiLwVgAobaDA6mMBZT9U7f+DbWiNVPNRIpka0UIFxpGOr57xAyQ2zmWjwg6nf/ir52ZDlCK MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fde10f61-c901-41bc-d92e-08d4ea2fbeb6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603185)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR03MB2265; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2265;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qs7IfkH0mAgFnx9Mf195J45lE3vE8LQXEjgEoMPwsKPjh0d8WHRgUFvjLKjFY/Rgh3cfO6N/iavBfHaaWTC7nQUgb/C09M2uTx3c9rmUMNFV+mdJ+gdaUYKsriMFqLogt/OrMx5PtyIknQjUJoqaS36smbAz6pfyJ87sdrW5OBnnojheAixHg23/jL38lm7+R6fqtiwpv7mLAxYSmEYooTb1sPlLhOcfeFL+BHOLYBUf8= 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)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123559100)(20161123556025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2265; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2265; X-Forefront-PRVS: 040866B734 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2265; 23:j6g25DuquwrPLNeeE7oYn7Ifw+dMvH+0HjezPwhC/?= =?us-ascii?Q?TMHlGjVBnbF8GKYO29OzL9x5bjSv5GOzNniFxrzSn8XhGYUc0Qkkh05Woris?= =?us-ascii?Q?hBlI50cOY5ZfOiahVUca0mV9jeAdv/qUQK39htwKYQOzbCSSbyni7BuyXi+V?= =?us-ascii?Q?AMkHkV0xhrGQ7+U+4qedh8h3BQWDrCHjzh5hedudKSB1qpvtA087Xvp2Pm5F?= =?us-ascii?Q?z8nlghZdZuF0waK9XMnEKyOasWUgRk49+S1xfd6b9P1LAOgZ9G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VAMVS?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2265; 6:vADazdZbqgHDsn818wdZJSrXZ8aU0trX2FN75FWHpEKDAd0yVewcpzr8rHo15yOKyycXDkIrD92v0VHJAMVXO9s4mYLDhvv6iDWPGLr8zFExY3fJryOIylStfdvpqUV8Nne99g0XVW6Sw6CFBZyU+p/SIynmZeYrM3NP3zo2D9+XPG9DpuSvBwsusYpFSiJv+u049E25ipXlov1NA+uE1J38iGsF3wg5bQWT6NxoGLc1KVV8RePYxdfLigXco2NwUk4K/98HpgyuvAKdIbo3/RCPtvslb52zQ3zJcL91GH73HwGwGXmOn49S1r/5d7PTtqrgaBZAsBqHtw1Yp950Mg==; 5:uqlI//t6M3Bg3efBLkdZYKGrXNex0wokSDnASw+J7vzlVdtO2qMV3Oo3c9IoTWIxWl/huu1fTtC+TFpPGICrClBvjm0xymQrqHf/Ogria94IxXHqin/CN0NM9lGxOLl5Wv2IF+mX8zAPD5oXaYYWTQ==; 24:Ye6ZSqHV2CQZc2e5bCN/4dcvSGl0wfhFMliJJBz6v0LPmMfN+wKjZxk0R9kblt82Ohf5ee8BOF6UsRkgLL60mqq11+IHA4tTJxMGwL0y2fE=; 7:JoQgus4vMsAiK0brBZcOVuqrlOCs18pd/HctPwcXMG+syOdpGoF1MAQmfij/g09xr1ypmyBycoFwet6o8npQJLFa0eagEVpsXpx7XABStQEcX8YaacR8F1T0DavKz7Pm0jGLUXr+FBqzj+nyz7pxWHCY+f1tmI+2D25Xi7PblDaFpIcqErjGK5zPGDH9nm4QgRNsTeOgCjCWLUD0NQ+JrOEGckd9OKtQYqesluaFE8Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2017 14:03:34.8071 (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: CY1PR03MB2265 Subject: [dpdk-dev] [PATCH v3 35/40] net/dpaa: add support for 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: Wed, 23 Aug 2017 14:03:38 -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 fddd9ec..55adc04 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 c3eb804..225898e 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