Message ID | 20200911093714.28346-1-sachin.saxena@oss.nxp.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 <dev@dpdk.org>; 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)" <sachin.saxena@oss.nxp.com> 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: <VI1PR04MB583928370F76BCB9851B06C3A2240@VI1PR04MB5839.eurprd04.prod.outlook.com> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v1,1/2] net/dpaa2: fix misuse of if_index
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Sachin Saxena (OSS)
Sept. 11, 2020, 9:37 a.m. UTC
From: Sachin Saxena <sachin.saxena@oss.nxp.com> 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 <sachin.saxena@oss.nxp.com> --- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 9/11/2020 10:37 AM, Sachin Saxena (OSS) wrote: > From: Sachin Saxena <sachin.saxena@oss.nxp.com> > > 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 <sachin.saxena@oss.nxp.com> > --- > 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; > Same here, I think assignment can be dropped completely.
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;