]> 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)
commitf6ddcbe22c93cb5246d58e83a4976c377343b858
tree1a95f9a0bf24e8c39e01973e9f803d8f90088b10
parentb4b02dcb02764057728167e9916c5b09e1af1689
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: c50464babbbd ("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