]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix VF ID issue for setting VF VLAN
authorJian Shen <shenjian15@huawei.com>
Thu, 5 Dec 2019 02:12:29 +0000 (10:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Dec 2019 22:42:43 +0000 (14:42 -0800)
commit1c9855085ebaaa2efcf368bee038e4811015abbd
treebc30a5c307a3a613ccf40198c97c2c68e21378c7
parentd1a37dedcfcf2c01daff5281c3c378876a04e2f4
net: hns3: fix VF ID issue for setting VF VLAN

Previously, when set VF VLAN with command "ip link set <pf name>
vf <vf id> vlan <vlan id>", the VF ID 0 is handled as PF incorrectly,
which should be the first VF. This patch fixes it.

Fixes: 21e043cd8124 ("net: hns3: fix set port based VLAN for PF")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c