From patchwork Tue May 1 12:52:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreyansh Jain X-Patchwork-Id: 134781 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4906786lji; Tue, 1 May 2018 05:36:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp+iBDVyBhqycrCtBL+0Tp7SgxCLO5KOKy3Yk4ORbOLW8IGC85NVv8SGlbTwGTuwIN6Lrij X-Received: by 2002:adf:8505:: with SMTP id 5-v6mr4379248wrh.77.1525178219109; Tue, 01 May 2018 05:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525178219; cv=none; d=google.com; s=arc-20160816; b=zc6Sn4iH/PGJDLFlcsR80yV8yTxPcWpIt+1ilRxPUiQNF5661VJJUAlUthblp9g1Ts qDOaf1dGyxhi7EIUAwbF7ulYHxPP6KUR/pfChF8YdfExZtPc50GzLS/10IaLw1pnClC4 mHuib+RZTApV7eTZI5OrHzlWgbPTCmoXJq0u9NYNYh6pI++5xS/cPiVTa+yW2KLAZnpB 9M/x8q7PwjWTTcL+kuckXztY8814X6hNPtl4v0gaCM4LaCEfqOsTUutt6DI1m4mQiGSY bkLCAUiWvPERA966XEfQxKrHbZK5oSdhykBZfO+Hl2freUVxxkyK0yVWYKYn99iqELQr DdBw== 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:message-id:date:cc:to:from :dkim-signature:arc-authentication-results; bh=JQ2ONuKB5rjkPffqEpffh0K23GS0EW21ddSG5LTorlI=; b=Q9s9/qYrnfZn9D9NyNEoVXur+hXKEwdwNT8neOE8v8sfGdORKnk12Vj5NuFgKOJuGI frv9qGGmYxl35nS4XKuVnn7X7WqhcyKBw8Rn/6nqybWDM4MA4IM7QVAQh3CuYafkQ83V FjQmdtjzH2angR7A/c1ZUj/hBHUBRjVZWmV8AA6Sye7rEa5Ozo3WXw8zTEfKCXVa2Sqm 4b4d7ygI8ooexsSk8wJL6DPvxsh3B3Cos8TH5Lfs899fLOmKtviZKfShyqsdOipHFxzV DbXIFxsq95lCgrvuiAlRozBbx+CEbDrRrdMX/3hVGmxkVdqrCMLU/tsy+cuq+U2V31HR wdbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=rfSBiu73; 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id n2-v6si7570714wrh.394.2018.05.01.05.36.58; Tue, 01 May 2018 05:36:59 -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=rfSBiu73; 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 E627CDED; Tue, 1 May 2018 14:36:56 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00062.outbound.protection.outlook.com [40.107.0.62]) by dpdk.org (Postfix) with ESMTP id 51F86DD2 for ; Tue, 1 May 2018 14:36:56 +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=JQ2ONuKB5rjkPffqEpffh0K23GS0EW21ddSG5LTorlI=; b=rfSBiu73WP4eUuFBn2nIrG4Wk6XrcGkNzU5JbH42ZTdL+mf3UJT5Y/6RxCxOOKLHgdGDDM8+yuMYguIz4wT/VX3kfuEwFtmEFBhc13hIQTHOQe4po4AuS3QqzOYy6tfWpVEXH5gKZ7Ngs43/15AFgPhLNnw3ifyr7GYipoEFNhs= 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:53 +0000 From: Shreyansh Jain To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Hemant Agrawal Date: Tue, 1 May 2018 18:22:48 +0530 Message-Id: <20180501125249.12409-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 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:uIa9I3RRIDphYCChXOqshtQ89IWIhynyjM09ulSfFl1kRzAKf9inK7qSXO2hI77dXbRwCgbS+IAXwxzTt3s2qJHYcsnDizOsnUZ0E36WyVi6TVqz3/PsL+j1yGetnPrt+XENOO7t4fWxG6NGk7DJrwxutjHORigTZj9CCgWGNWclb+1UpdLGrWc0VM05q9zYmlWhCQlpAC3S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/lbHt/138d9lltyNVO5zaW5Tnr59hhRlNmGDN8O4zKLkkxwUZqGw/hOYWoqrJbZJx+vgNMCo52nXQSHWWj40lpaiVgIYetYG8acybSunUqrZcXun1uKinf+IfHA81minT36oZbwx38/wc; 4:fevoVYqlGMvwC0GVSrzt/T8O9sFSVZtArNWgTXh27qCL6iEujMoBfhChnsB9nuq0mCxzp/2axmEzKBTn2Kqik/5lZLXrzCdh8ERNakustoWERLCrvw4NAlT7RRFpPPVgzLVQZ3aDfh59fWvzATl6e/BqFdMAhly+TFQHVMbauhzYHvIFFH4kZ/PlHO038Def2Yhigozwv43k0Ox2cDld+7aUjk6UXR683gpdti66r8W6nBOcwuYozwaH+fUybLT90BqzsJLzInQRSJ/51glvEInupuBBwsg881WV68EtEHzP08W+qw8+VbCXnvgzQ4kh X-Microsoft-Antispam-PRVS: 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)(3846002)(478600001)(44832011)(97736004)(6506007)(1076002)(48376002)(51416003)(52116002)(6486002)(5009440100003)(476003)(6916009)(6666003)(47776003)(55236004)(6116002)(25786009)(2616005)(386003)(50226002)(956004)(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:+pcqk43Q8N4tcIWLNViuaeTpvewVwJh1NFEm6me?= oSy/bvc4WQXg/VtoHwdHxckxY3tvnbhMFt4wLM3C3iqMiFIJPOjLOthzFCcPwGaCQUbgyA9BuPVXfgPYMWlVLAnh8UDxr++cEQUhflLedgvTuvZ2ADJQRo41+4QE6oXTHdUKN+KMNhs+8IpI5cEVRHoQuBCC+5Z71fu2esCdMLABdcHTs1zGNczWv3bextNMzA9dRzsaXqm2cdJ0JF5iiNuDh/ZFmdRzAetq0sPN8vOKfV9Cs4PttuoVUfC86ERQ568O5kXn678O6Pio5w85WV3decckCZcwcMjWkHfRmCdYyhDHU5zSdJju4Y8T34aOMR3j7RWrgt4NmePi0Cbr8F7ugF74g2WB+I3WKBkkdFaRXC2zPl2XwTiqYBhX33qqsDaBg/tlSQE4BuF8O+IpRgRba1qiPKIYh78KR3IN/UAPqYqrlPeNBihIoqHz5cEOKQgphqfvdT8f4SS6rmOEvYOeeq3XOHp198ahisbFXcb+M1beHfzEVAVyvZXKl37yFrto9fKw7m6s3nMMGcl+5rEQfTpYE5umek/VixnReOFXR7h2cJZ7VmVODQBZOK4T4YSJPgKoT9WmpaWyReXsPMOLNto7jeAcZFO87bNInRGxYmJhSXw7cWQYuRU6irSiiOGxz/mck8VKN0/qzn47mpSAaHJdClDcNgyFi/RjfIS41Z9l03G9t+EJQk2jpqEoLNw8JPIkuitoFmQHRFt1PxouF5MMvZ+O4zZ4ciYyZ7b48Fgi14eU3s6E4dkYk/2aCyPGqi9MuNVg4Wx0y9hcz7YkJs9QZ6dnuNMqdz0208zqyYThLktMIbF4DueztZ6YBTcFPTmtIjW8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/C+lLURaCTSQ45jc0efpa0vWaayHhCIf1jAwgsSPQ==; 5:lVHmThQ8oO+gzeeT4YztFKkRhhT44KwsJ/4t948LxQGqBc9T2t19XaKODoQExWLRnIpXulNbFoStHSIpXa0jd7n2BnGDYbJuYVDaW7dmCvGUGL6vjrDw8U/aDLIasc0dhUTSIOlLA0lAXyYVyXExnKEkz4VkOXodeQrdQM+zTDc=; 24:5eTrCtD3K1BfdNm3SPxDH7Z3wF9ny2bEj6slmGiLmyq8MyvW1iA8tXPiuA7B4ufY37j3uF3TFvDOdBF7BPhAR3Hvw1zjB3up1BvOanDI8RI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2781; 7:3KuSvJZu5tiA5Y9ckJqsgcueJInZ3LmFZBq5EVNEe8/alODKZyHSP9Hc71zkiQDQC1dVbvcM7i0mkhbz6NmDVI/lM8Or2exFSJqT68tsaAHZ4d/KqNfBP718ywAWmsG9D2pODf5rH5Dg9SCe+DzXePmAieQ+xoF+ADggCMG7U9L5yrubIs7siGowtNxaLS0Bp8KU4YZBiSK7O7O0c2oghkH1OH8UBvdhCBW4CuFQRLYK8Oj96EF5qIMow7vcK/se X-MS-Office365-Filtering-Correlation-Id: 91cb3c94-9c65-4072-eb7d-08d5af60388a X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 12:36:53.2048 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91cb3c94-9c65-4072-eb7d-08d5af60388a 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 1/2] net/dpaa: enhance the RSS hash support 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hemant Agrawal Enhance the RSS hash fields supported by DPAA1. The RSS Hash key fields are configured external to DPDK, through SoC specific scripts. Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 2.14.1 diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index c051ae32a..df2b38444 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -74,14 +74,10 @@ #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) + ETH_RSS_IP | \ + ETH_RSS_UDP | \ + ETH_RSS_TCP | \ + ETH_RSS_SCTP) #define DPAA_TX_CKSUM_OFFLOAD_MASK ( \ PKT_TX_IP_CKSUM | \ From patchwork Tue May 1 12:52:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreyansh Jain X-Patchwork-Id: 134782 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: 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 ; 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 To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Hemant Agrawal 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 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: 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:7rt7Ft0eBs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SsG6+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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hemant Agrawal Add RSS Hash fields supported and set default values to other device information fields. Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/net/dpaa2/dpaa2_ethdev.c | 5 +++++ drivers/net/dpaa2/dpaa2_ethdev.h | 6 ++++++ 2 files changed, 11 insertions(+) -- 2.14.1 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