From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 58D4845F79; Mon, 30 Dec 2024 08:06:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED8FD402F1; Mon, 30 Dec 2024 08:06:18 +0100 (CET) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by mails.dpdk.org (Postfix) with ESMTP id 3516640273 for ; Mon, 30 Dec 2024 08:06:13 +0100 (CET) Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4YM6b91xfFz20n8w; Mon, 30 Dec 2024 15:06:29 +0800 (CST) Received: from kwepemf500004.china.huawei.com (unknown [7.202.181.242]) by mail.maildlp.com (Postfix) with ESMTPS id 5C3BB1402E1; Mon, 30 Dec 2024 15:06:08 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemf500004.china.huawei.com (7.202.181.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 30 Dec 2024 15:06:07 +0800 From: Jie Hai To: , , , , , "Min Hu (Connor)" CC: , , , Subject: [PATCH 2/3] net/hns3: remove pvid info dump for VF Date: Mon, 30 Dec 2024 14:54:04 +0800 Message-ID: <20241230065405.18552-3-haijie1@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20241230065405.18552-1-haijie1@huawei.com> References: <20241230065405.18552-1-haijie1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemf500004.china.huawei.com (7.202.181.242) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Since the pvid status obtained from kernel varies on different platform, and the pvid of VF can be accessed by 'ip link show' command, so remove it in case of misunderstanding. Fixes: 871e5a4f881b ("net/hns3: dump VLAN configuration info") Cc: stable@dpdk.org Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_dump.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/hns3/hns3_dump.c b/drivers/net/hns3/hns3_dump.c index 738dcb0c42fc..f21d32e6a2b5 100644 --- a/drivers/net/hns3/hns3_dump.c +++ b/drivers/net/hns3/hns3_dump.c @@ -693,6 +693,10 @@ hns3_get_vlan_tx_offload_cfg(FILE *file, struct hns3_hw *hw) static void hns3_get_port_pvid_info(FILE *file, struct hns3_hw *hw) { + struct hns3_adapter *hns = HNS3_DEV_HW_TO_ADAPTER(hw); + if (hns->is_vf) + return; + fprintf(file, " - pvid status: %s\n", hw->port_base_vlan_cfg.state ? "On" : "Off"); } -- 2.22.0