net: hns3: Add mtu setting support for vf
authorYunsheng Lin <linyunsheng@huawei.com>
Sun, 18 Nov 2018 03:19:13 +0000 (03:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:57:29 +0000 (21:57 -0800)
commit818f167587f402aedcf406ba57d0caff739dcad8
tree33351e1c75a44ea5c272c7e0d5fa1511c4570c29
parenta6d818e31d08bae09c417e579c4a39cf3d6dde2e
net: hns3: Add mtu setting support for vf

The patch adds mtu setting support for vf, currently
vf and pf share the same hardware mtu setting. Mtu set
by vf must be less than or equal to pf' mtu, and mtu
set by pf must be greater than or equal to vf' mtu.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c