]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Disable VFs change rxvlan offload status
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Jan 2018 10:18:06 +0000 (18:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:06:17 +0000 (14:06 -0500)
commit0b1194e9bd1b021fe30bd4ca3db1e8e392d2f487
treeb0bd1002503e822e2c1e625e58a71e07ad75664c
parenteb043f1d7b021d16bb635cbce1f06a40c7f022ee
net: hns3: Disable VFs change rxvlan offload status

Rxvlan offload status can only be changed by PF. Initialize
the value of NETIF_F_HW_VLAN_CTAG_RX bit of hw_features for
VFS to false, make sure user can't be able to change it.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c