dpdk/0081-net-hns3-remove-PVID-info-dump-for-VF.patch
Dengdui Huang 37c95ab89b sync some bugfixes from upstreaming
- net/hns3: fix unrelease some resources on reset case
 - net/hns3: fix divide by zero
 - net/hns3: fix incorrect failed rollback
 - net/hns3: fix memory leakage for indirect action
 - net/hns3: fix extra waiting for link up
 - net/hns3: fix variable overflow
 - net/hns3: fix memory leakage in failure path
 - devtools: fix symbol listing
 - net/hns3: remove weak symbols
 - net/hns3: fix reset timeout
 - net/hns3: fix copper port inialization
 - net/hns3: rename RAS module
 - net/hns3: remove PVID info dump for VF
 - net/hns3: fix mbuf freeing in simple Tx path

Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
(cherry picked from commit 4f2a5e819346fb5bf12b9de68352782319e4a2a6)
2025-04-28 15:33:14 +08:00

38 lines
1.1 KiB
Diff

From 64b1d911fadb88f84d666049027502bddb591890 Mon Sep 17 00:00:00 2001
From: Jie Hai <haijie1@huawei.com>
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 <haijie1@huawei.com>
---
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