From patchwork Mon Sep 14 14:22:17 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: 77613 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 B7519A04C7; Mon, 14 Sep 2020 16:22:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 91BAAFFA; Mon, 14 Sep 2020 16:22:32 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by dpdk.org (Postfix) with ESMTP id 839051BFC4 for ; Mon, 14 Sep 2020 16:22:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SUPEKjMzPk9PWTHcDq9L71FP5fdWgyNOThTfXYV4Mp4Lvr76b7p2TY02buhJ2LngCKv9zTRAdNflK1wRngK0JV8byZUnD5/F4dp+oZOk/T6nzxYYVGv672ovQ2geaSl+6Q+Q31I/aYwiv0fnNTjSNzbj+dNZ0B/3MHk4HqGgWEr1p3r/0BBjSAt8POnz3aMh0asgejLZPF7NEkMv93n17ZpqBQ+AgyV9WLxo8HBLvUJifRmIKsCXE973ydnibfez37GT1AMs+nBbjsr8ydhEojw9/RGUUCijJYoBaOeyu+gkrLmAs5zlysakkJg+noX0QZfPAaNTBKyBlwm4jS9BtQ== 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=1PBdIxGvR6anBZNqujznnkeYrRB6HhsTG95D8vc9Cng=; b=jkdn8ns65gKFiR62fJVzjQ9ozVVU2WN6+hg18IFz5p1BOl1cdQXwv8qOPlJNFiljhscIL6hxEt8kIZFa2aeFxyBadI/SMkMS8gp/EBh9XLMGQZxV5g77f3Pns8DZe7LAKN1/g8h1rpbW0KiXauyQkaojSh7AVgGSwfYI3jVISiVUT2l3FvxD+n+XEVHnnxgk7gUFc5w2Dslyx4kts4wU3PntLvaKiVvVGsksWzS4WcoEJ7cisD7XAD+NrDvArFYfdflJ9m5qgu6f14jYBbywXQwZTMSUvDdvakLsWFNnqqBtwk7itiFeQSIL8ppS/3kigk5wQDKGMzRqSarimMonJg== 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=1PBdIxGvR6anBZNqujznnkeYrRB6HhsTG95D8vc9Cng=; b=mXnthZnPBTh6hQn11gUWdVgmq3g+aEg6rQiskn93M9RK2Meh8ksXrDpX6Mrsvl7u7GQSoPnD7lYP7sEV6nXQsH9knXAZXf2Prw2ZUoPPHHlRnT9LvMwOxBzmpreqnAOcFvPg1C8GNIjEGrB7G3KQP783bCC0foqIOfEKTTGyOTs= 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 VI1PR0402MB2717.eurprd04.prod.outlook.com (2603:10a6:800:b4::11) 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:22:29 +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:22:29 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org, ferruh.yigit@intel.com Date: Mon, 14 Sep 2020 19:52:17 +0530 Message-Id: <20200914142217.31836-1-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911093921.28398-1-sachin.saxena@oss.nxp.com> References: <20200911093921.28398-1-sachin.saxena@oss.nxp.com> X-ClientProxiedBy: SG2PR0302CA0018.apcprd03.prod.outlook.com (2603:1096:3:2::28) 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 SG2PR0302CA0018.apcprd03.prod.outlook.com (2603:1096:3:2::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.5 via Frontend Transport; Mon, 14 Sep 2020 14:22: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: a5148bfe-8009-43e6-bb47-08d858b99c2b X-MS-TrafficTypeDiagnostic: VI1PR0402MB2717: 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: gBZrybaHuZZ7VdUW/Qmo0R8Lt9jjbppKG+Cokyjc1kKq072ywLmFETRRtpZWoKqEZytvx/78DsVh/ZZBXsCuA4B+/Ai14RxjoTsFlgDm0Tp06Wp7qEzyNslB8SPH+ALjR48cKQciV4NWKhDEohDFt0eRDbk1sWauu3ECaWfibxOxz9fXmi+5WAgeh0rsqJ82V7sIfd1qjsqQaLTialE3WPZMHakgrSKZ72xFBs6g3QASvp7ik8rILSRyJacHYi3kfwuYKkpcu05Oz50RZsnG/K5r0udb8gDcxJCYjjQbbVrkVRFN8zOe3I69XoQqlO/HMjnZklCTVDA1hW+g6HHN4faR87jW7niNOXfjF8siKr8A5C2uEDjdt7KXjciP4hCV 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)(136003)(366004)(346002)(39860400002)(396003)(376002)(66946007)(5660300002)(86362001)(6512007)(55236004)(8676002)(6506007)(1076003)(4744005)(52116002)(6486002)(66556008)(66476007)(316002)(2616005)(186003)(956004)(26005)(2906002)(478600001)(8936002)(16526019)(6666004)(1006002)(83380400001)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 3SdXxPyPcyLUsGyxMghvlFN86PjIgFWhW3Qfii1inCVOr2XeWChK99sg7SuPI+/za0d5Pr7appyD6wCTw3sB7uenYC/BsVBtPsoQi4KI5QcPgzwAlT5TAfdPWQjNMq4zw1IrOEEL5yAKhE3BI+wdnSBbyw/H3bHaDMJlQ41ff1B0XqKDrZtHtbNcv/nSLxA2RbBkxxyEEQsA4eSoqIQCjlf5XGFR4vZdHPkW9XBqbnQhoM0l+T7kQLnmkigBjeJJnoOkRg2uW5AhB9EVSvluwTfq+fya6/oiC8NXnHy7dE43DXu2DQBXSyYfsdZWZKrI/ga6JoYwikfVioz9Y1HYYzbiPyAOFflV9CGi3jyNBYml1vrWNn/WsNl0xVLbcbVF6/QpIwre2nz9In/uzifiIx7zVLovrYDWwPyI0/Xjh1sS0vmIqRyQ0Mn24h646eM+VzUh18aDzXc8BarlJAolMAcI4MC7kZwPehRtcNP9637ueZMy7vpk0GJ1fEHTvkONTholkzfsYagxcnLud3ZDuP5wYR4ndUeovtwrAmSelpObMSLWeguphHlqmw0SWdfuwuE1rqMtMDWR0cYYjuXB4lYPUjUn6ZUzhl+z9NpbVcFcCLEPnZo6pTEtnQCxYKL+FhNvk1qfAbB2uZUR5tzc4A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a5148bfe-8009-43e6-bb47-08d858b99c2b 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:22:29.0727 (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: glpzdvLOJdHMtLDBSrsWEGFc1hA6vVPQSb/qVGcoqmuQu4/AsehMJHf/vhE6Xvel5AQOeSzHmpq9u+QoycnDTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2717 Subject: [dpdk-dev] [PATCH v2] net/pfe: 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 Pfe 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/pfe/pfe_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/pfe/pfe_ethdev.c b/drivers/net/pfe/pfe_ethdev.c index 368acfa55..97356d2b0 100644 --- a/drivers/net/pfe/pfe_ethdev.c +++ b/drivers/net/pfe/pfe_ethdev.c @@ -427,9 +427,6 @@ static int pfe_eth_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) { - struct pfe_eth_priv_s *internals = dev->data->dev_private; - - dev_info->if_index = internals->id; dev_info->max_mac_addrs = PFE_MAX_MACS; dev_info->max_rx_queues = dev->data->nb_rx_queues; dev_info->max_tx_queues = dev->data->nb_tx_queues;