Message ID | 1525171468-30268-2-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Accepted |
Commit | 762b275f20f84c9e64197f7e28d9d0ee8a76c002 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4807591lji; Tue, 1 May 2018 03:46:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoWpOaNw23UEnP9kEO38bwowqGcFfBA1atVq/xsuuWbc8DzI/uw9ttqSydCnNTqQi3piXzw X-Received: by 10.28.130.75 with SMTP id e72mr3727218wmd.64.1525171607556; Tue, 01 May 2018 03:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525171607; cv=none; d=google.com; s=arc-20160816; b=trDpJKdZMXApBxRjK+bJ6Pevlx1TihSrQojV743aiC4544P9Fjinqg7U8EToCxDzW/ vzjln81OCNMaLs80Refr6h/MMnrCxRxebBnnqy2QllCKNv/3zBQEOW4fwG7WxPx6NMvw f0irVYam/UwwnanJwszrLnFx6NDWwdW1I2DDBm+gawroDjY4F6FOflPRHjY+5UgPvqEk M9v6971xMyUXWbNnaZmbxuwBUeJc96tws1GP7Zcc8kzN8SZcpm6Ku6Kp4YGRUomevNUY yoA5FQr52OCPTQUVmxsGoVIyLjhaRAOUsmPCAWFh1gUA9VFofZXciaiaW0yciNNJPN/U Hf2A== 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=Plo+khYSu/B78r5+rphyx+3Ww4GblrM75k+eAn3Cltw=; b=EfS0q73jplZ5egoxQy+FXZYdNWATZkyxLcKneY8U8QL3ALEAghy5yFFVkQRRld6Fzb e/lolaCh5SPKt1q1qV5WVR4wNRLKsqfge/5MfIb/8dFKZP6dESxWbH1tgoKo89cBrMYe AUR3CKl/ZFbk23p9Jep0Bx9X4e491LTUVbLwWxv4DnUUaMtLPGkVHuNVbq2ZkIUHf61e I354v0I2T3FbNtYbHnOBfpqBzWAU0c4JO6M7ZCh9SUJcarNDn7vz0zleRU3PJCLp5a9w LjwCSEI/y//fhlLIPG3kEQ6Av9NyO5OtB6uRJjYc66TOXXYK12FuissJ108QFw7XM/jr 3Iqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=wVok37cs; 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 q16-v6si7913060wrg.228.2018.05.01.03.46.47; Tue, 01 May 2018 03:46:47 -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=wVok37cs; 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 A0A2129CB; Tue, 1 May 2018 12:46:38 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0063.outbound.protection.outlook.com [104.47.1.63]) by dpdk.org (Postfix) with ESMTP id 3B81929AC for <dev@dpdk.org>; Tue, 1 May 2018 12:46:36 +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=Plo+khYSu/B78r5+rphyx+3Ww4GblrM75k+eAn3Cltw=; b=wVok37csj86OMPJFGkjmoob1Qbw0gsUpuxvjrPAtROYguY06w1xkWqwcomlElamJA8+yDBiEWMv9ytx+cfy3vV1KOdVZ1tdoTBHDv61Vv80++zes3/62LgbuF94hZ5S86/MU9vjY94qf7WrD6iu54/i3DrXqqc2fTaJX73midpY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM3PR04MB0760.eurprd04.prod.outlook.com (2a01:111:e400:883c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Tue, 1 May 2018 10:46:34 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: ferruh.yigit@intel.com, shreyansh.jain@nxp.com Date: Tue, 1 May 2018 16:14:28 +0530 Message-Id: <1525171468-30268-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525171468-30268-1-git-send-email-hemant.agrawal@nxp.com> References: <1525171468-30268-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0081.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::21) To AM3PR04MB0760.eurprd04.prod.outlook.com (2a01:111:e400:883c::18) 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:AM3PR04MB0760; X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB0760; 3:mHRe8kGsKZSrM7CCVdOFSGOKhGjE9kP1WRWqfiOtlXq/fpji+JWAplFjygzo/81Aqy1sqDGhjJQuliOshLjDviuQkg8riHurFr3ciH0tqg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+HzDPaogxnvZHHnUvj6KsAn7Xl210gI9ACX70wPZJNYujCqtTrUudJ8wMdjV/dnzA/ZzhltXZIyNXypk3EYzi73a24cMcj3GyZJSFWR5LUo/OUw28JbwozaA9WcZHkjIUak7SF9iwEqyMkNURU2CbNMoqsDLWcdm3TeM0YnMiPnyie/Wja0yMffALCBB0+kXBSuhC/9ZqWwLq6zwWNYqkHQm9FqqiaJJ4a/WYhL4vkxZ8BKh1Nyyuw; 4:eMUILabDPvbjkWm+5NcglGNWDeJwB9dANCOlhl56EdvIQV39QlDLNZ46gHhfePuaOhrMgwSB/gY8uoPv+QIFl5GpoJc4m68Q0LX4ME5vVt4IpjMVuZ69UM3wqqYH+IMzR8Owvo/aApHpl7c+3Egw8aLzNN2rBSffKPSwY89sYo4yyh65g+/hdxizg3BI79fIlHSxCoDTN0IQKqAc2STgtJCiTKgDQ3s6z25WzZzfUVczn3vqxDkCxHURvNFjbFup5oLE+Hbu7mwer8sclBIL0LPKcLlo95IsWB3QybIqEqejjairobv87WGRnFtR5EkD X-Microsoft-Antispam-PRVS: <AM3PR04MB0760F9880FBAB3AEE8F876EB89810@AM3PR04MB0760.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)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM3PR04MB0760; BCL:0; PCL:0; RULEID:; SRVR:AM3PR04MB0760; X-Forefront-PRVS: 06592CCE58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(376002)(366004)(39860400002)(39380400002)(189003)(199004)(6512007)(5009440100003)(97736004)(50226002)(36756003)(316002)(2351001)(106356001)(76176011)(5660300001)(53936002)(6486002)(3846002)(47776003)(66066001)(6116002)(2361001)(52116002)(51416003)(105586002)(7736002)(16586007)(11346002)(6916009)(44832011)(305945005)(48376002)(186003)(26005)(6506007)(50466002)(476003)(4326008)(6666003)(81166006)(86362001)(8676002)(486006)(68736007)(81156014)(8936002)(386003)(478600001)(25786009)(16526019)(55236004)(956004)(446003)(2616005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR04MB0760; H:bf-netperf1.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; AM3PR04MB0760; 23:N2sNTSEvzEx9jiVDKK+juyJEyt0UNCKAFox4u6Ndw?= JWgCZwtCHXMPgaphkMQPVj9Ov/f9+rfMIS9IjG3Ca7riJaxU2popQnXX7q/ku08TPWjk5fGhj6X70WCghkiqKdWfeUdkcVuHm74W4gC2aNhJdZ17IvLG6PR5ywyGyykxsQfMi/drMgBOQ8w3PqOwGhE1qhJHDJvqqCgAhGORqLumXdaBezpPW4Mi7cky03Bc4ZIDp1FTdHqzH5UGP7Tk3UYMZulAPym72YB8n5shEZpGiRp6y3IxS7QxgbpzvJq69w/TzpkD87LHFVoniDbVBxjenQpn16l3dc+KhNEGFOgTU5nK5/f4+vJifRKdfVvXb94V+DvN4vSau5ZKhvN9pNTdDB4z7JApPcGw1/Xb4BL92vy20WpinAoig+UGqO5VmDtHpu7PYgq7U5UOmBpVfFsq7AxQ3IC2HJRJuD1qhUKULVs8P+d2gp++MMnTY34VJh4d3TN4BhBuOzT7zKIM3fkxut7XYc281Xn7Eg/QRLZbR6hHblK/PGIjd3SRlGscdj2IzpbO6rWLPP6OaluGqeV+yr6Uyq9VHOJGLHbq8z4ATXfcebwuW0D1OVunpnY6UND5JcVKk6hZzd6bNZImM64WngPnKps/pxeLggw78aC3ZB0HdaVWHHOY8TRVJLTbPIfLMXed1P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MCLNtymwhuWN2ocd7c5R6B5+PTZdGhpDhdLVu/2Ju+0AlwmNZkLM7Pyi7j3lBGNYpk5JsgD0OVrFaWXcQ81vWRtATJTiT1wbdsyszVPSkSPh1205Gz8sF1fk42YCsyNgb0vMAmRg5AH/ETUwOspdU1w2LWvPXQwbMVv+gqqHgAYBSkxxeGZxPaAZj5wmY8WnB6S77cyBqNZGO+/2ZxkZFxN23aR+tgwZHSME1voaOCOyUsD1LVNQVGTDng5TTVZG/wQ55JW0R4QzGnja++azA==; 5:lXx5mw9yCHD/3LrGC55HvoLMHRwpfJE+Sbf0Z5FBRUIsgTc3ZIc0a13bvwkl6ehIGfUri3GD6FNMfMFaYnC6+gvMl0BXqPum6NgadXqgPDUEbA+YDhsfK5IAufWv8pu90DhLjMI5huPuSim0PgNUHfBE2rexAUoi2bq5mSs4Lbg=; 24:FbeMqPxGh15aZbKEiYSY7sFO8I9QhhbYEOSsDNCdflGvBl2uiiUfkd/xuYCM5voaBQ8bsffFKrw74UNIP46g3+4Ge18h6Z+KmuEKSE2ju+A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB0760; 7:zdd7A9X75/b29t6slamNT3Ug3YUKJE7vOiJaTh5eWc/vsMOdpONFYqFKcuHYQboE0XXsIi1l05ZkmzFcQ3PSNYlPV7ym3abgcbRn+VVETSKwnYyE88p8oy5qrxgzlSX2PgxgJpZQ0wkdQzAJoJ5NZT8PDPI7xZrcnT3OlwU/8mdvaMj7LJxkVs1m+QuLNK+9+5GABmirM2OPWNbMfSs/WGE2LNT9YAbgPx2vC+LTI69QO5zNviZ1MAZ18XQPB4p1 X-MS-Office365-Filtering-Correlation-Id: 4162615f-ebb2-4eee-ab64-08d5af50cf38 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 10:46:34.2729 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4162615f-ebb2-4eee-ab64-08d5af50cf38 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB0760 Subject: [dpdk-dev] [PATCH 2/2] net/dpaa2: add missing 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: fix the RSS hash support
|
expand
|
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 2f34022..c304b82 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 ba0856f..bd69f52 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
Add the hashed RSS support info and other fields in device info. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa2/dpaa2_ethdev.c | 5 +++++ drivers/net/dpaa2/dpaa2_ethdev.h | 6 ++++++ 2 files changed, 11 insertions(+) -- 2.7.4