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)
commit30ba2ab94019b562bdbaf9b347455870b4b2d15f
treeb0bd1002503e822e2c1e625e58a71e07ad75664c
parent391b5e935633acdb84e2e65574ba747f176b3d5e
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