From patchwork Fri Sep 11 09:37:14 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: 77370 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 C820AA04B5; Fri, 11 Sep 2020 11:37:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 082D61BFCD; Fri, 11 Sep 2020 11:37:39 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150047.outbound.protection.outlook.com [40.107.15.47]) by dpdk.org (Postfix) with ESMTP id 209D61BF90 for ; Fri, 11 Sep 2020 11:37:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SsAd16lFlg3JpY2h0yDQYZX3OP3CFTDkQCVuNXKuFSzcmaiDcWFFHD47BXk/8AHBVZ3G8JPK5ZFpYQ05nxF7hDVCiRY730UFxmYD4nfw6jIdmNxOsn+NgWHjwDzbQASZRFB+kDr5yxkb3rki8SPmNsRprb5cggrfm1fg7HTtAPSkep3v6dWTol4XhlTHYrE3JD3R5myKxrjlfTw6owk/aDf/+a8Wjgy6Q6WIRQTJeWeNzgmcmwWNs6+cwK4l107fG9CgWt6H1HPqxpVN8/NDszYqsEGHE40RNW17IC+OEy0jb7B63YXp8jjJk74+v4lXNsyFSqRG4bG1D4cD84JMEg== 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=+4OBYn1OCUHopsptysF7+nASOLk0S+mU+5Awo++LVGg=; b=O+P3aYFXpNAUbqIc8qE4CHqDdDjohMdCOOcDxys+K3aPXFECcqDmojuNOnETAcu41cCrTtE2wdZrG/CcwdtOoYmxjZGapxE2S3wmSUiH0SYQoX9SvBuJ3MAHcNqzH7ssbG2M8oo0HTuHLxBvz8qMBDc3x2p/3zwRbPcBS6WaIy1aYWDAXOtCPAG3lKcGgVhU8Bmkt4PxunWNdYM/OtpJOOqRJo7L1XpHyDmzDd0kxYRaTA/J2qSdHlcwpFSww62z5yAaFmGFwn26xM15iriIEIPitel3aH/Dl8TBw2JARtlJSz8SDKzsJqD8d+IUhDwin2DLZu+vePazgCJ46Ti1sA== 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=+4OBYn1OCUHopsptysF7+nASOLk0S+mU+5Awo++LVGg=; b=Ba0+7PsImvsHGSSafo7d9LXISMQWkj0D+ByPHXhWHfJDVqx33owG5ebjVTDL34Rlv6X+l+HgqbEtYTjQiGI+K3tXPCxRE6lV9nCSe2Fn2FrK7T8XOCoy9NJ5CMjrDaAIu7s4z3a0zowFcy2vpBhVnqP2APo5E3pbDMGjz5kE/GA= 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 VI1PR04MB5839.eurprd04.prod.outlook.com (2603:10a6:803:e0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Fri, 11 Sep 2020 09:37:26 +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.3348.019; Fri, 11 Sep 2020 09:37:26 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org, ferruh.yigit@intel.com Date: Fri, 11 Sep 2020 15:07:14 +0530 Message-Id: <20200911093714.28346-1-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 X-ClientProxiedBy: SG2PR06CA0180.apcprd06.prod.outlook.com (2603:1096:1:1e::34) 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 SG2PR06CA0180.apcprd06.prod.outlook.com (2603:1096:1:1e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 09:37:25 +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: 6f7858a3-e080-40d1-78ae-08d856364b0d X-MS-TrafficTypeDiagnostic: VI1PR04MB5839: 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: P7LmwlHd9hMD3UPbztDJxQbYolodVyh08dmRBD7/edeCL9peZyl7mSkGz/WNS5iK/fNJ5ZSEShfENs6xdMUinFTjUZJa/tJvukMwT9AGJ0TRL6E2/yaPmZ9wl44ruIGj4NzSZ6etbnD30AqaJktQmEDpU5k5vxivNvSL7mgOenBfYJyRhEi+w1tb8jjZUuqXdyOb0D07x/YJvgpliRpwtNAlS7tZkB/R9KGNlTbvUlGV7oDcXP1UJqkrb+eHUqWDR6OOAM6MoJ0t3yzImbNvtA1rPPEFiPRrGY7VYDfopHyqiRm1OmkKSg1NZJd15Jdvg4FQQNNACttYA5CbGtbraB5VUINGVOHKkhaoe8ar3ft1go+C2gIGu5j2mtEvDYpV 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)(396003)(136003)(366004)(376002)(39860400002)(346002)(86362001)(26005)(52116002)(1006002)(66946007)(66476007)(66556008)(5660300002)(316002)(956004)(6486002)(2616005)(55236004)(6506007)(8676002)(186003)(2906002)(478600001)(4744005)(6512007)(1076003)(8936002)(6666004)(83380400001)(16526019)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ksiCTya6BQi72mO2QjHraBNILG3T6y1MdfKbSJY4Z9+ILX5W/0u5dDdayyb4fbmqOjw9cXgmonX7eYePHQS16PKNa1QtCLO19PNdNrJuFpxZp4hWFw5yu+yKxm1r0hwbAV1P/XsApy5S4bAo5o7K2E2pwvDLEVvZ/cOZNWxTXIFHfkFgSKzGaMllpcei+5MGgznVUjmiuzfIXWMqxTaS4aG6B850ZMqSf/Lkr4iOENBRGVXszEGVYILmOo9rzzda4tJEuKGJXKEbULdpMIikmKc5jnkGbEsxigE03Wul7ZbrMEXN0j+rZ4Qtaa005UoRx3Pe6KJBDVb2QUL9vQjLY8wRs4OomH5oco2uXzy8nv0IdPEOKzASb2eau9rZThifisjn/0cJMmP5DfJhPOvApouVF5PFXMAEsLH499TrXaMUFS+OczBpIv9uoR+cIWQXWi4BgmnFQ2sQWI8VClZ+txqsN7harIwZzrVXOnxC13nWfb8m4HseYN2con5SmRfJCI+xShD2eOuXvuniX8U2KaaybEug+ifqRGnTHuhUawPXxonJUyD3uia5PB5S9lhOmjrtwxP5ADTk49MlOYAWNf/rksTYyMSF765JN90rzLvLzPVzyBbhldVtNVHDhdgoy8Dpl8oCayJ6uYroIjZSIw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f7858a3-e080-40d1-78ae-08d856364b0d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5837.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 09:37:26.6408 (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: 8NXDML8WoxiZ4AJAMQeGE7S9zsQUEHP+WSllCDsfOH283v2DopZquDTfNJpM7pEbpoIBKGWuFGVu0/z+vdlpbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5839 Subject: [dpdk-dev] [PATCH v1 1/2] 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 --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 0e9f836e5..c91543131 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -241,7 +241,7 @@ 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->if_index = 0; dev_info->max_mac_addrs = priv->max_mac_filters; dev_info->max_rx_pktlen = DPAA2_MAX_RX_PKT_LEN; From patchwork Fri Sep 11 09:39:21 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: 77371 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 16C12A04B5; Fri, 11 Sep 2020 11:39:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E246A1BFCD; Fri, 11 Sep 2020 11:39:34 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00075.outbound.protection.outlook.com [40.107.0.75]) by dpdk.org (Postfix) with ESMTP id 3DECC1BF90 for ; Fri, 11 Sep 2020 11:39:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFnEqJ7Tas2oKB5DCMgdOtaBoE0Op5ikC0kaU39oNEJPUdg348KEZnO3bI+A/gN8zSeEknq9aKCK7K3sr1YQrVyq118pLjFqrwXxAodZUclJWv5VrlVImySYu4kSAmKAH6945uXCk/AaZ4bqQv/qQeUETyXdBwWp2oWYGbD12Qw/iqJT7+MKDbBXv2A0079/KBml6gM6RUc3fb557WNGBZb/UiWnfYUgezl0d/dgyx4GQI55uZBSIPAVqL1ecKh445TK+LPmsqMKqGhrHe6d6Bk81S5Pj3+Y/EemHsgefCaYdXhDgLBTGweNNa/DuMKlOlzc5PEnJ2kHEEnlJDZVcw== 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=UUzny7yEegnBZP1h7cEdvGPNmOGVsmeiYMbHx8yghj4=; b=NNkm6wjw3/JYe/jippaOSsS1iKvyoYcuYeMBJQbonbBU7juG7pPfg1ypMkVvmAtRrdq3jr4UW6KSiRZfZVkEsc2XH4P5pS2PUgdlexLfxN1IlLPV6qL+/o65sx51RehP4kHRrXWnOUunD2K/jIH+Os5vPl/PvCc5ZJHHq6Tf8KVQeo1HngZDPoheqWGXXnNcFuIOgu9mpXkOHP6CmfIqNhJTl0G9CWRN2xFgCwMq7IXhrLfijqdqVXbZezyi3Eh5KvZGu7K5CPTyS9iczQKckcESlP0Xr3LqxSPfQLMoxGOOhESg1M63tV9VSX0Tb73dcse1vDWg68x4fKtLAijvbw== 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=UUzny7yEegnBZP1h7cEdvGPNmOGVsmeiYMbHx8yghj4=; b=BTFX6HF9fUa0iu+w0/GZ6VT0CrNd+chVTwRTwGGvCpb2bsKXmhLBONWwQxBfLwogt1PNhiddOg+4lHBIYEHJC5CihKQ7huXpSn3OxAU+gYzPljwg+1Xw/1fhtAKMGlVfdt4kLe8Ha0Fv0uEkBRASzZwkYSBH9gQFKEnncno8Fyw= 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 VI1PR04MB6255.eurprd04.prod.outlook.com (2603:10a6:803:f1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Fri, 11 Sep 2020 09:39:32 +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.3348.019; Fri, 11 Sep 2020 09:39:32 +0000 From: "Sachin Saxena (OSS)" To: dev@dpdk.org, ferruh.yigit@intel.com Cc: g.singh@nxp.com, stephen@networkplumber.org Date: Fri, 11 Sep 2020 15:09:21 +0530 Message-Id: <20200911093921.28398-1-sachin.saxena@oss.nxp.com> X-Mailer: git-send-email 2.28.0 X-ClientProxiedBy: SGBP274CA0009.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::21) 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 SGBP274CA0009.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Fri, 11 Sep 2020 09:39:30 +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: 3a3c98eb-3310-4910-253c-08d85636964d X-MS-TrafficTypeDiagnostic: VI1PR04MB6255: 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: IWrawnbIzkAnxeJn8YwBRWSI15hvLWx/+QDQ6sYKmXE7G53/7Iew/vojXv/xfnhBOviNtN2xbztta6fpmr4pvuH0nOKukQ52SDMkTWEE3UmXAJyfOuogS8fsjO7Ao1GHbxOYnEljQnZEzOGL4gTfnjX6XFKITxbyZ9vSm8vnoiXp8/pHpAYI1MXS6UVzAxWuec1qUWlr5+DX2khmoPnDDQ8RRWx9EFH+peggbXjbnVwR65P7e6o5lPDvPZ4tFSQt594MN0TeftkCKYUzMPt/FdvHnhL2v5kmzhfXltWbl9DBab2rgaPsMnngbsm41FbIxWg4cpTxjK+SB550S/t4DU5R+psTrJZik3qVdPcXN8mE1H/ay1AdaNKxmzKvUw4j 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)(366004)(396003)(376002)(39860400002)(136003)(346002)(956004)(4326008)(4744005)(66556008)(66476007)(66946007)(83380400001)(16526019)(478600001)(8676002)(6486002)(2906002)(86362001)(8936002)(6512007)(26005)(1006002)(2616005)(55236004)(6666004)(316002)(52116002)(5660300002)(1076003)(6506007)(186003)(110426005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: MMXI8pV3H6d39Qndowj8pQrE7nI4UOCNnDaCFuzSnXk5dOa0+L3ZhXNg1+w6bWEaRX3uQOA50za8kvo1r9+E4t7h3W6XsFvUbNjZtwbStDnx/s5x/ArHCTapHEnSYZxplvC41HR/9GWQGL2d2AQeF1ExRVVC9He/Zuubuqg7VFd8Kpg8wAcdCosfj7m5DEzgnvy22SXDQaPgInXh/4YQdxkPNm8t71LhYUraz0OgfTGQJ5Z0dCb4Sv1thxifBnTLQm8UZJcbizhiX3Kx14kPPLYFwpLKsSiTo8b+yvUbrcwGUwXECx0tbTGOhvvb+zfy5JczpVZZs7EI0ExK6fVCR1+ynCAIlTyfv3k6Jj+XuNXyS/iKMLp8s4d1zuaO9xQQa786UGEXEOcQ1PniNWC/gXiDjexachfcAXqBl8cDXE3Iwg4qqbaao7tPG+5zl3cuJ/q0rrqz5/rDiF8uH9wj3zvmYHHNnIYmeF/ENniYp2sujCOHoenSeLIwUzNVgmJfzQO2K/1c7AnwaTTljE56e8IIsqRLXycEvZb9EHPIwyTsBuNEMSYDpbsuWin2wBUs/7G4RJDik0KM98nM7zRDXSxWOTtkqYDij+oJ/Ix9ZQOKXqzhhOx+exzbQzfTx9u66xQDe+ZDB20ORj6B/cqKGQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a3c98eb-3310-4910-253c-08d85636964d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5837.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2020 09:39:32.7853 (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: 8hqjSa4G8W9Nt7CNGRD39KBMas9rj0WM0GuTDrLgZk0adfLT8rl4ndSClUGLy7bH4dzbsCYQTpckOE9iam6aqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6255 Subject: [dpdk-dev] [PATCH v1 2/2] 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 --- drivers/net/pfe/pfe_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/pfe/pfe_ethdev.c b/drivers/net/pfe/pfe_ethdev.c index 368acfa55..8cbd51abb 100644 --- a/drivers/net/pfe/pfe_ethdev.c +++ b/drivers/net/pfe/pfe_ethdev.c @@ -427,9 +427,7 @@ 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->if_index = 0; 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;