]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: enable broadcast promisc mode when initializing VF
authorJian Shen <shenjian15@huawei.com>
Thu, 4 Jul 2019 14:04:20 +0000 (22:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:39:38 +0000 (15:39 -0700)
commitc52276bb4e6e533547ab2f7ad00a5c1096f64de0
tree1a95f9a0bf24e8c39e01973e9f803d8f90088b10
parent23d2557baadb937434a5bdc8159741ce030517b9
net: hns3: enable broadcast promisc mode when initializing VF

For revision 0x20, the broadcast promisc is enabled by firmware,
it's unnecessary to enable it when initializing VF.

For revision 0x21, it's necessary to enable broadcast promisc mode
when initializing or re-initializing VF, otherwise, it will be
unable to send and receive promisc packets.

Fixes: 5e272ec681ec ("net: hns3: don't allow vf to enable promisc mode")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c