]> 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)
commit692b2cc2ce7159fb0514f82589891c2cc2fb9163
treeb0bd1002503e822e2c1e625e58a71e07ad75664c
parenta1da36a90ed79c1343244018f742b1fc1a12ba2d
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