From 64b1d911fadb88f84d666049027502bddb591890 Mon Sep 17 00:00:00 2001 From: Jie Hai Date: Mon, 30 Dec 2024 14:54:04 +0800 Subject: [PATCH] net/hns3: remove PVID info dump for VF [ upstream commit 3c805c1ebe02248bb0c2ba944046c2e3354b0c11 ] 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 dcdfcf4..8411835 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.25.1