Message ID | 20180501125249.12409-2-shreyansh.jain@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4906944lji; Tue, 1 May 2018 05:37:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpQmR69vVsW4zKt2ylhcSOrHehmEpJ0Z9KolysLYnOBwT1ZJFkOM7sl6bcWRLLryYzFwpUy X-Received: by 2002:adf:83a2:: with SMTP id 31-v6mr11567352wre.19.1525178227631; Tue, 01 May 2018 05:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525178227; cv=none; d=google.com; s=arc-20160816; b=04vsWPEkx/TPte5TwrdaL+EfZb1kht+MG0ZJiEODTB+UP55TP2Rr1LgkXT20FvL/c5 /x5h9h4+Gyh/1Im5gsdaBTGe9vcvDt/DU/3dru2QPFkVpylx+aLQSgxJNnjw0wX4jt1J xR5SbddkcmR+j+USQ0xt45nHHpeEJJhCAyaAyrm8Q3p3+pLeNa0BIDEOzgRUpWIDz7ra W/I9bwnW1wuXXd4lgjAeRucJfoydSn/NziUNMbcURjjzzJc+LmbOTeF7XZ5t9EPRX2Ld KyTTvG1lWBXv4+QPs3aM5xQQoXjVucgYUn2pyqSgMHuZGLSRVRTyQ3SIY2/r654L12eq bZ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=2yr1aJTSXU37Ft9mRjBdEJG2MfkqVWbSJ5ZpDc5gh9w=; b=dWVKBGzI6eUcrT3pxmatMNUG0A1lUk5ui3Rv/jQfbdVpFcPLt91Z5fi9KWX6GeLSPk kVBMbI6g5Msja+tfZZ7wSldbMmeYGwGkw3R58zRNLnL68HV2yoj/bEd3BJNR3586Zotp nOl1f8B6OFFMhj1gN8O25o+zS5M6JpRUxg1RVKaC95G0IJsnmuiwEpZEHqV2bR/Szejr QDJFywD5/UUsHCf9is2qJAzjaU6EcvrVLFdYNhAWLMIhVeRif6Y7iiCMVPGy7bnluZvv iTTk265FlKeDATAQBJkHQFD6OI9tKkzdqt4620/NNolXrnDRmfFYA332dPpM8GRTloPt ENoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=JoNSFLFs; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id y70si6926770wme.33.2018.05.01.05.37.07; Tue, 01 May 2018 05:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=JoNSFLFs; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7183529D6; Tue, 1 May 2018 14:36:59 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00056.outbound.protection.outlook.com [40.107.0.56]) by dpdk.org (Postfix) with ESMTP id 789E629AC for <dev@dpdk.org>; Tue, 1 May 2018 14:36:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2yr1aJTSXU37Ft9mRjBdEJG2MfkqVWbSJ5ZpDc5gh9w=; b=JoNSFLFsJ8E7vtkrss+5T6EZKk4IMbPm6cxJFiTUCbC4uhdkvSjacv2ZEGPs9GtUa/pfCLZzul+AWXb0qDeP8dNv4GUmzr8BFSm8CpyzV0mFGG4JDymePI/dmloHNxYJ4bLco28GX5MOkNwQqr4hSmtca6VJejpU91WRNeSy5y8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by VI1PR0402MB2781.eurprd04.prod.outlook.com (2603:10a6:800:ad::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.22; Tue, 1 May 2018 12:36:54 +0000 From: Shreyansh Jain <shreyansh.jain@nxp.com> To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com> Date: Tue, 1 May 2018 18:22:49 +0530 Message-Id: <20180501125249.12409-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180501125249.12409-1-shreyansh.jain@nxp.com> References: <20180501125249.12409-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MAXPR0101CA0005.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::15) To VI1PR0402MB2781.eurprd04.prod.outlook.com (2603:10a6:800:ad::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0402MB2781; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 3:vDMWkS5rBqR70uIpMxL/pOCZg30XluFBNcYAs/CVaCA5T6jUfrldwaDeVSPpTgXX9UQt6AJXCoUXbSXEzXoFzQ+/tVzkPQhYLoaGXkjTLC1uHUaX/zzZ6YqYI24g7FROTj5MOh8Tkjuz3OIRtW2bQPmsyiwfi3lHby/Zelpj513AMw1lrq/psGjeANejNEnI7Gr/dqr3RnFvJ09OkhZotomWJgqXgnP0bgTnS5SdGOacF5DoMHRlWsVa6Vk+udRT; 25:2XB5YlFMbAzeSLHjXJ6JTSMDoiF3cPufVbxLR23fjZFqPDteen7L3XfXj6erR81t+2gNM3TYQj83FvO9ZY/v0JbFPYRca1aETD3h37rIUEw1+q0a1N9DJZjnLOwLZvRmh7mTAPpbyT0fmQmzb5bsXTXh/pJYISREJU99KtCkwmL/aVD/0lpQhETy3HkevIiEyl2ifrNGJy25j5ntjeZbozmpjplCmazKuUceu2TqfLRsr4np/s+5+nlqLVRA0PlYoNQRzPagqCDZFwBgQdhkZfQzNQ+0pAceE9OXz7UvsRXfFAnzxwU61KUK0jYODpIJpsGGutLlYCyFNKNaWQBXng==; 31:Cgm59DROlIicVpsJDcntb0PCpRJ51w/dROEG6G1GTEbublOacpBovKsCflroYQKBP1EqF3X52F2nLnD21DGo9SyNFu1Av/w7TEVTl7W6iQFO0HTSMpe4G8ggmCyy1z3WlQbWlOfj/bOKxU4TPeP5udRRM2Sw64wA4qvInwRkZDJNzgo69uzjjZYdi16UA1wAMysUGUyNdtr4CUTA3jroBvOSzA8T3jrooFOqSLk4kQg= X-MS-TrafficTypeDiagnostic: VI1PR0402MB2781: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 20:BLcgJ1rymSuaa8ocOOXxQv7FCfOt/Xv8AySzLulOx6oNY2f+eaZl2SwIBB7tkF8v7njYJe1dTpahMsrL9QCKReEJcwemx6yGvo5xHZ4j5aFNJEv0X7TEw+uywyx1vMDtDCjqmhZxDa0m55SPk1lsGyy+mg9I/Bujtf1eolsoh4MrelSGHiLa2CVAOYFfaT/384AhRwR4Ph4xbPXi+zFordwCgQeu8tREuiBBtBE2mobKZLq4NXdtdy74xiBxyxEKAARuwrmJoHYenWtcH9dQj7IdwDbDL3wzjQb99002ZsNb7/7JY1IKltD0IdIu8R3Af1zeXoW3VYed2n4vwg2NvhWMmJahl/Y561Tj2c/5IEXGnm1R7cOkAH1O21h2uTKlFDoSAqLi69BK3k7jA+i4NG5pUoDFceRh8Ocx1L7qxzYu01W6tsTed/RX5zJBn7kC/l2hO0zEUDIfvFDIHtsdJHd4HHBJ9uH1aaAayZPkM8Dmzki8rFHxXo6WS1I/4Qru; 4:epOiVfjloQro2yV8nI3dSEqjjsjxOphhehH8b0L7MKMfGt1sAFBoGhlyUHSeJhEKDXPCwCp634N68pt8fis0XxhXKza+fY0lkb8yyKjGCDY2MtlXdhp6GSECg4n2XMqZNyQfuCShxleAbc43u34ipTdx1ELMVWZK66/917kCzEO4JidFyoHqMqXYBQd2wrfUfJJGsdGk0KTGtu2JoC9Tdnxj6ySE7yD46R7K39nSvzzY33ZjuEXnA7CTSRTsWo3JaJdNZfUtlawmuWdvGXgegHPUFeclYba9CG926pEJ+o9xIy4a+SVBkFFxcpbClvSI X-Microsoft-Antispam-PRVS: <VI1PR0402MB278119281BACE4DD7F4AD4D090810@VI1PR0402MB2781.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR0402MB2781; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB2781; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(366004)(39860400002)(346002)(376002)(189003)(199004)(66066001)(186003)(16526019)(26005)(76176011)(3846002)(478600001)(44832011)(97736004)(6506007)(1076002)(48376002)(51416003)(52116002)(6486002)(5009440100003)(476003)(6916009)(6666003)(47776003)(55236004)(6116002)(25786009)(2616005)(386003)(50226002)(11346002)(956004)(446003)(5660300001)(486006)(68736007)(2351001)(50466002)(86362001)(53936002)(8676002)(81156014)(81166006)(6512007)(8936002)(36756003)(4326008)(16586007)(316002)(106356001)(2361001)(305945005)(7736002)(2906002)(105586002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2781; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0402MB2781; 23:7rt7Ft0eBsTJwENewBqBxALKy/yUUZbm02shsTk?= eqJOY1Xx6/N7jlnCvutnNZD4s5TdIeO+/nXRYJc0+rDcwv6cCrT8hCLNmmvkEu7HOnfNsEyCVzyeObIlbHJV6GeFBH5OX4SKoEqMQ1+tpQy9HtULufOFK5vrSHTUVrSXDBiNyK5y/QURiE8VUuweaWa+TeRd1rGyj6DANIW2UKbKgHSCn6PGLvDchv7fqlLJthQpGUzqoyViFvgm//BZz/cH44mPOChJCRLqCLOpceBx7HChdLnd79LjJcJeHdAWdxuag8PU8c341q0LYqEiVfJXg7KGAQ88bPxrqp+TIvp4Fgb3hZm4vr8RIQaMNq4F7SkYYnjEvKg7djHhqkShBL+pGFx3aFoTckoPg6L1NbR4p2iokR4CpSzXvCAd7dqNVfMD1/g9xWzGbqmXUZqN2NHT5M7IvnCvmZWO57Hu/sXt3QT4vwwvZkaKj6Vul7fwL3/bVPmqqyOxGI2LrrSppApWrC5r/Z/HgLhM8SX2buSETG0iZufEJYUd1PKsMk/fXAbHTWj2lYGR2KqQg/Ay8ejTkntgBex0JXTW/dZAmq+vveyQbabysBjcF3GeZdniy/9csonrDiSprENST34mWF6UzZgGW9GYf2j1hli/Cb7lV4B3DfNq+OG9boAbE9YzKpNxbsfQqWN4Zx8GdrmIMOKv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hYLkSwSk6/+xt0/s9/lcHpdwlE8erpamwj5se7sXrea4JyNPWd5zIgAQ+4fjA/auLjUk2am9sNMTZ9FNVfd3KGmEz+YfLHAed0APuqd8e8edo8auS5GSvPOdpRebxhG2koo1Ujtkox5+IfA9IClrct2Xr+TAqdz8etgQMUrAbTMyaq/TkI9lZfoEXT4V1+WleT0pCMhszjLhVworkpdHWz1DMpvI2zvzJgrI/ON2mNfT4Je0OSY+XJjcwHENgFAFIyIEfNqFiENtN/iVYqFrr7uKyS+0e4WQ==; 5:n9cQrSbyvlDzDEAiL4oFO0KOo0I7sVRztlPGmgZwBv4Jnu0YahowQBdMda2Mk1LZ3iamC1DvjEcn39Gb47PbtFEmHUDAiePW5SsG6+UzGPrxqelRxlbqEB3yn19qj3upaE2bUP+QoBvKbNHRzq9IfIH42J2hQI7mJRidZSIltm4=; 24:FL83dU5THM1i6Hig1R7kUNc6F82qq6zm7zYpB2SbDRHm+5KHgNwOX2EZVQ3gx8t63CUDJlpmD0HZMGnJ0nFtRHBkH/BrZglONsecs0irCqM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 7:wdqa26xlzHpY4VsYF5YLov2buJCoBZkWQwPl4COWVP9qFSv3S8IVJhEeYzCujmgLAUgA9A30ZcrGG9QboOCYBOPnYtie09TXQhzCOWvmP2myiH2QOuPzDkYj6jhhCqKOEYSMN/hmbsteDaxSbNmdWNj3sFGRa8fUvw1EcAIFqL3toB5RZSNOJTwAQSxFaonEOAV9TbMlNUaiCJcxAIbEL4L6iRKWDxDS2VbC8ms/WexBDp2Fnep5kYXHjBiaHsLb X-MS-Office365-Filtering-Correlation-Id: 8e31dffd-3c15-47f8-cc3b-08d5af60398e X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 12:36:54.8924 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e31dffd-3c15-47f8-cc3b-08d5af60398e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2781 Subject: [dpdk-dev] [PATCH 2/2] net/dpaa2: update RSS hash and other device info fields X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[1/2] net/dpaa: enhance the RSS hash support
|
expand
|
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 2f34022e5..c304b82bd 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -207,6 +207,11 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->speed_capa = ETH_LINK_SPEED_1G | ETH_LINK_SPEED_2_5G | ETH_LINK_SPEED_10G; + + 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 = DPAA2_RSS_OFFLOAD_ALL; } static int diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h index ba0856f3e..bd69f523d 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.h +++ b/drivers/net/dpaa2/dpaa2_ethdev.h @@ -50,6 +50,12 @@ /* Disable RX tail drop, default is enable */ #define DPAA2_RX_TAILDROP_OFF 0x04 +#define DPAA2_RSS_OFFLOAD_ALL ( \ + ETH_RSS_IP | \ + ETH_RSS_UDP | \ + ETH_RSS_TCP | \ + ETH_RSS_SCTP) + /* LX2 FRC Parsed values (Little Endian) */ #define DPAA2_PKT_TYPE_ETHER 0x0060 #define DPAA2_PKT_TYPE_IPV4 0x0000