From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0074.outbound.protection.outlook.com [104.47.41.74]) by dpdk.org (Postfix) with ESMTP id 71CE41B27E for ; Sat, 9 Sep 2017 13:11:40 +0200 (CEST) Received: from BN6PR03CA0015.namprd03.prod.outlook.com (10.168.230.153) by BN3PR03MB2258.namprd03.prod.outlook.com (10.166.74.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Sat, 9 Sep 2017 11:11:39 +0000 Received: from BN1BFFO11OLC002.protection.gbl (2a01:111:f400:7c10::1:118) by BN6PR03CA0015.outlook.office365.com (2603:10b6:404:23::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Sat, 9 Sep 2017 11:11:39 +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 BN1BFFO11OLC002.mail.protection.outlook.com (10.58.145.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 9 Sep 2017 11:11:37 +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 v89BAUhZ026326; Sat, 9 Sep 2017 04:11:35 -0700 From: Shreyansh Jain To: CC: , Date: Sat, 9 Sep 2017 16:51:26 +0530 Message-ID: <20170909112132.13936-36-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170909112132.13936-1-shreyansh.jain@nxp.com> References: <20170823141213.25476-1-shreyansh.jain@nxp.com> <20170909112132.13936-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131494290989215774; (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)(6916009)(33646002)(110136004)(68736007)(2950100002)(6666003)(8936002)(5003940100001)(47776003)(5660300001)(50466002)(54906002)(48376002)(50226002)(77096006)(305945005)(356003)(53936002)(81156014)(8676002)(104016004)(36756003)(498600001)(81166006)(1076002)(4326008)(97736004)(85426001)(2351001)(86362001)(106466001)(76176999)(189998001)(105606002)(50986999)(8656003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2258; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC002; 1:sV9q+MlZyZQuh/8/BD//8U+jbfLBGgv/2/oEQBJvAvOL44hZstAvy6Q6hbA8YzCNejJJXXQbkxX0pMG57C2reej8t3ecxH7PUxStfXgXxHg3nVTTg+2yltUfU1sbOQCb MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 889c5131-bcb6-4434-0ec6-08d4f7738adc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN3PR03MB2258; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 3:XUl9SPBaxi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uY30wf1c6M3QmaahZtRD1teW+v6np+c1/LMD9NxFylUEvwbscngD4w5wS2WvsMO3XqbI3BWW0vUC1+iNK/D5MGlSLUWEVa8aY2NlEAIW6uXfec9bLcyrXfAPei0xRyoRNcwYla/CzyAEGxhWFkZ9AForCXoga7iYoUAWiB/u70U2hA4AKmwrESw3ncvt/I7Vun0m1s6+/GEYQ1JtLnNWm8dTEZNyD2w= 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)(8121501046)(5005006)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2258; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2258; X-Forefront-PRVS: 0425A67DEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2258; 23:n7vS+DNo2kJafuqRRMcf8dEgNVCqK5lRuNrIbRcVz?= =?us-ascii?Q?l8kLRa1Zn/+bqBPhPp8eZ82YrZKgMwes0fDuYJPLd7r7GSV+ai+ZtdV7Cf+U?= =?us-ascii?Q?UoeNvPAoe34DCe6O7HUSOtXiGMtaqkroJcodgvQ9KzKyih72o4aq6ew3mzXq?= =?us-ascii?Q?lcTCT0uCEMGPUgRvjeFL9zmLWWQDCQpqdA/r4ETNDWADpvWLgjXnEgheCNbi?= =?us-ascii?Q?ieNUmiyn/obedk1TwXDtN/wVAPlUdE1Vi8ydJiuJckyw/miFIPxv2X73uCq+?= =?us-ascii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j9VjnW?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2258; 6:CTjolfWkzyPM+7LoGog6GWnPH1sMxjobuKPIhLUgYJgU+9j5sXWeesPWI6A9G68/gr+c0AXjtnAvzMpNF5Aocg7tgubTRIpBO5N3Fhhofz3OeWtRN4xr7BQGH0uH8640l9HjW7VmEyNcYfBAz31+1mQ7iSBWAjP6JNNcfiEEiuaxeeVCTn6MkqJ+Sr+7od98wqY6jXGVmcnJElh9BfMWWf24mODpAnU4JnswPLZwn2OuhXJZobIxBtkUj2ddz7vyc6XlrlwOIuKQWqYe5a9bMsgb1dX4OZ+JQHX6y63b7rNyFlcLUoTScJo0XC4JZgrRBIfkdZkTuqDsshYZSSIoEg==; 5:FfzthIsUOHDvNfjx4UZXwNztl3Ws9naqmzt6GEHD3h/uojs4oaCIYQB7gQkOadndXqn0EMi5chPcqueOHZzurJGxVi6ZK1l6Lz53Cq5ZtCO055ER7jOi6GVcEgnNCbcKmazvG8p0L5nxATjSOe2l5g==; 24:2kqFP0NhceMXralMfDEV79P+0NwTj3UVTBhLGwGrNBe3jin669Q2HLtnCBBTQJuuJ+Q/XNK/GX/GJRj3a/Xg+hZo15/AxWIPOWfplzSteQw=; 7:pPbRgz+2sq6ZuVPecFLc/Kj2u3Dx/wMiRxZMHgwRRULQcD0r16o7PzyvzedPp5x+HnQM6z+M0kfbJh+NSgZCDGM3b0+4L+/R8bmOmjzoaAd+2Bzo3fyRxrn0+hO4GcC52JdZtrGXgmEsjGS5H7/7ul81SvwW4fDNi1Dv4iFWBgCjzi9vjn6zcwjSgetbcFbgyE4BLcmTfK3RwYONw9PWnciDTMojuV//kbWkWyMlGBc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2017 11:11:37.7204 (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: BN3PR03MB2258 Subject: [dpdk-dev] [PATCH v4 35/41] 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: Sat, 09 Sep 2017 11:11:41 -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 f423e51..b1525a4 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