From patchwork Mon Sep 14 14:21:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sachin Saxena (OSS)" X-Patchwork-Id: 77612 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C947CA04C7; Mon, 14 Sep 2020 16:21:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 05D3BFFA; Mon, 14 Sep 2020 16:21:33 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40072.outbound.protection.outlook.com [40.107.4.72]) by dpdk.org (Postfix) with ESMTP id 054E4160 for ; Mon, 14 Sep 2020 16:21:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z3KXKjQYqNp6BjLJn2jvryD0iiT+HdyFHJI8tg4d0cV4T9Q6H/LKrKU8GvrygUu0BQ/6FReB7y5JRbTZgULXoSXtaOw9fN6daamtdRsoTAMrv0qw3mAFjFbytJh4ZY3vyK+CY5uWHiN0whtnOIsTqSep0VHjBmiZO6vrWWnSPYEhim7ERt1t394GPD2FFcHuDFDReRsK0d1zbNrystWFjYBpr1QkYqWY03XecmZ56BvbIEkpR2nlt/sBAqG3FRsUa6MP93hxnrabVHoxrjt9P6MeJBLk3Kk4vcW3xkbDHCq22ToOYR5geKx1TuisKpB8ZPGxECSUQXr7ul1OXcPe1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gI8BdZ34QrrQkjAju9hxSbSoc+RNOpQFQermIm7xw2s=; b=Ju006k6RHgxYFwL1spn97d2cYEUPsqcyeaYK6ale5povL1c+xdY1KSlrb0HuoQ9Gx4PVQSvpbOMk2V1ucc7idiEBuG4EHJWOXgDJXzg/LrChNyNF76rpt0oZ4VCwSPW+5AkpocXcc8qP1aKcGBz2JLlo+G+4a08lsgoT20dcJbSNH7y/hn3OFYBkPOdHmL3fKIcZRZ6lfS6ASUlB3m091vT1fU+igyKl33bnWQpEzpzVmSju1Z3+ZDL4TK6yIMJ3OZnY4Z3el1Y0M0OQFw2+PZE6Vkrd03Igs5k7e9DBk2dFllJkcArWRlaD/nM47F5yxxQ+CWjQ2plWF9wBZ7DDqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gI8BdZ34QrrQkjAju9hxSbSoc+RNOpQFQermIm7xw2s=; b=RF+IuqbQ7OMiWN1fz4SuYrY5/1KAxKu23pXpDCEHiBeWHatJv1x1OtDSIegYHtQVul15mXrFs0cddvltTarBbumZgissmRB1d6tCYG88uKdtBk4puYIa23DNMi0FAxsR9inlb5vlxu5BAUWXih9t8cCNG+G/gEoS0eHQHqTbYn0= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5837.eurprd04.prod.outlook.com (2603:10a6:803:ec::28) by VI1PR04MB5664.eurprd04.prod.outlook.com (2603:10a6:803:e0::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Mon, 14 Sep 2020 14:21:30 +0000 Received: from VI1PR04MB5837.eurprd04.prod.outlook.com ([fe80::cc01:9fe2:2544:8a4b]) by VI1PR04MB5837.eurprd04.prod.outlook.com ([fe80::cc01:9fe2:2544:8a4b%7]) with mapi id 15.20.3370.019; Mon, 14 Sep 2020 14:21:30 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 14 Sep 2020 19:51:18 +0530 Message-Id: <20200914142118.31739-1-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911093714.28346-1-sachin.saxena@oss.nxp.com> References: <20200911093714.28346-1-sachin.saxena@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0147.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::27) To VI1PR04MB5837.eurprd04.prod.outlook.com (2603:10a6:803:ec::28) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03161.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR01CA0147.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Mon, 14 Sep 2020 14:21:27 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [14.142.151.118] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 28d16e04-f15f-4e7e-f605-08d858b978b0 X-MS-TrafficTypeDiagnostic: VI1PR04MB5664: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nj0UFE4Ev//g1vhdZokjRXy4mRCaEryAg6c3FPuTCg6a+tJUM+L15nm1sHG/uuAnoHaltAMIgNvCLTKK06g5Rn++olDl7MyLBrEkDWwX29f5e3ipRjBnVmrs78aM0CJ4rowZB/se/XXPJku/hjCI529+rfCc/0KPmNf7L1Sbq3FlD1GQ6rtfcy0jUoRYZ7/W3zCykWdw+q7jIY4e+rTsWt48uHkWcSwBe1SLad4uokyj3CR0ad4v18byegDPtjACJlgCAUi9g32ePx6VrlMx9Ir9vuohWhVxhfnpj+fcUr5iBoZgnjoy0cvlvpsocWVzP/clY1T3K5cykfKYNfNUldsoTxmpCrpBBLX5+4RyT1SbbhVWQyWXivXwCclFiD27 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5837.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(366004)(346002)(396003)(136003)(6512007)(2906002)(1076003)(83380400001)(4744005)(186003)(8936002)(86362001)(478600001)(6666004)(1006002)(16526019)(316002)(8676002)(26005)(55236004)(6506007)(5660300002)(52116002)(66556008)(6486002)(956004)(66946007)(66476007)(2616005)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: pcKoJzfkmHzSjwVLbEphqgF5fuDo53ZOk0qZrQ6a2Cp8ewSjE/yc8MVzWxicyhjtViBncUVGXctiD7EXzz77X0Jg0oBPwCFgwieI7r4CiNeUsdaXjcK5ZEoDRUQRb1S4kfEQAgr2hwf9sa5DCHMqSe8j+LEZtkvkjeZVrAKbi840eakAZXXEOu+FKVxEJhhxVUuagVFZ8/soH1x5QkdoeZNjV534SWMcFOTNorQl+fKpm7JRfpo+u8Os/kFkJbasLV2vejbivLMqCZ/ih6fc0YfXJN/I4msE2x+s+IPGRmbzZWCjKPka37a/5YpHEFk19MqN3KCAO6adFjep1KzrQT5pGKyu1Rov1rm9uEw/3Ejdbw9HU4mqsXyZIdYwEGrbetQn8qy5aQ8A8fvKweuyKNxsc7hCaxHb/b9p2SmhgwSVAc0Fb0p39JOHz9awBNA2173lx4ILYq9BW+VT+IivYQbaPxKD5xga1J/gg7cPHVpoe+sejf8V+B5jiQN7ZgYx4zJEGAGfMYJCG1YQ471rGTSq0UWtT/Twg0NXBahVoydoLYVVcRI8dCzDaZ4hhp4XWkG+lIXTuDJxnt+vuB08cYyPRRO1ca4W8ApPQY+qKzjd580p4sciSMPX9y+az9yHMl50csB/HRQJx+PITlbl1A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28d16e04-f15f-4e7e-f605-08d858b978b0 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5837.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2020 14:21:29.9717 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XOgHqyG1iJXZxG4eYyqItmiyhB1Ojd6q8HBf5l2zaQG3xBh9tQksqPrZA4QZXJyKS4+DNltjxF+VUtELHxtV1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5664 Subject: [dpdk-dev] [PATCH v2] net/dpaa2: fix misuse of if_index 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: Sachin Saxena Dpaa2 pmd has no need to bound host interface for which we require if_index field. Setting it to 0 as unused. Signed-off-by: Sachin Saxena Reported-by: Stephen Hemminger Reviewed-by: Ferruh Yigit --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 0e9f836e5..02daa4d25 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -241,8 +241,6 @@ dpaa2_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) PMD_INIT_FUNC_TRACE(); - dev_info->if_index = priv->hw_id; - dev_info->max_mac_addrs = priv->max_mac_filters; dev_info->max_rx_pktlen = DPAA2_MAX_RX_PKT_LEN; dev_info->min_rx_bufsize = DPAA2_MIN_RX_BUF_SIZE;