summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorJijie Shao <shaojijie@huawei.com>2024-03-07 09:01:12 +0800
committerDavid S. Miller <davem@davemloft.net>2024-03-08 12:01:32 +0000
commit03f92287b251de318f3b93f5c1e0cb6ccc87b011 (patch)
treee010af2cf84f72321a17a19c5f5d783ba2deb7a5 /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parent0fbcf2366ba9888cf02eda23e35fde7f7fcc07c3 (diff)
downloadlinux-stable-03f92287b251de318f3b93f5c1e0cb6ccc87b011.tar.gz
linux-stable-03f92287b251de318f3b93f5c1e0cb6ccc87b011.tar.bz2
linux-stable-03f92287b251de318f3b93f5c1e0cb6ccc87b011.zip
net: hns3: fix delete tc fail issue
When the tc is removed during reset, hns3 driver will return a errcode. But kernel ignores this errcode, As a result, the driver status is inconsistent with the kernel status. This patch retains the deletion status when the deletion fails and continues to delete after the reset to ensure that the status of the driver is consistent with that of kernel. Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hnae3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index a72caaf05475..f19f1e1d1f9f 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -820,6 +820,7 @@ struct hnae3_tc_info {
u8 max_tc; /* Total number of TCs */
u8 num_tc; /* Total number of enabled TCs */
bool mqprio_active;
+ bool mqprio_destroy;
bool dcb_ets_active;
};