git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd74211
)
net/hinic: increase protection of the VLAN
author
Guoyang Zhou
<zhouguoyang@huawei.com>
Fri, 16 Jul 2021 09:54:28 +0000
(17:54 +0800)
committer
Thomas Monjalon
<thomas@monjalon.net>
Fri, 23 Jul 2021 13:36:17 +0000
(15:36 +0200)
If the VLAN id 0 is deleted for hinic, all packets without
VLAN will be discarded when the VLAN filter is turned on.
Fixes:
50ce3e7aec8f
("ethdev: fix VLAN offloads set if no relative capabilities")
Cc: stable@dpdk.org
Signed-off-by: Guoyang Zhou <zhouguoyang@huawei.com>
drivers/net/hinic/hinic_pmd_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/hinic/hinic_pmd_ethdev.c
b/drivers/net/hinic/hinic_pmd_ethdev.c
index
9464657
..
75849f2
100644
(file)
--- a/
drivers/net/hinic/hinic_pmd_ethdev.c
+++ b/
drivers/net/hinic/hinic_pmd_ethdev.c
@@
-1617,6
+1617,9
@@
static int hinic_vlan_filter_set(struct rte_eth_dev *dev,
if (vlan_id > RTE_ETHER_MAX_VLAN_ID)
return -EINVAL;
+ if (vlan_id == 0)
+ return 0;
+
func_id = hinic_global_func_id(nic_dev->hwdev);
if (enable) {