]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: don't allow vf to enable promisc mode
authorJian Shen <shenjian15@huawei.com>
Sat, 26 Jan 2019 16:49:21 +0000 (00:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 17:33:31 +0000 (09:33 -0800)
commitc50464babbbdf6a60d9dfba8bdd77c465252c0b6
tree1042e124a1e5b77ba7f60a737d238f1f86418e08
parent5b08b68dc3d770f0380664743059f403d78f8875
net: hns3: don't allow vf to enable promisc mode

VF can receive packets of other functions when in promisc
mode. It's not safe, so don't allow VF to enable promisc
mode.

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_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c