net/hns3: remove restriction on setting VF MTU
authorChengchang Tang <tangchengchang@huawei.com>
Mon, 9 Mar 2020 09:32:41 +0000 (17:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 09:21:42 +0000 (10:21 +0100)
commit4bf2c84bd88691bbb9cdc39a8bcf597537abfa80
treed374f753253c0f8e33352bd24829d9e6e46ebffd
parentef2e785c36cf2e1d84eb8cc71ed4778db5b1c698
net/hns3: remove restriction on setting VF MTU

The hns3 PF/VF devices on the same port share the hardware MTU
configuration. Currently, we send mailbox to inform hns3 PF kernel
ethdev driver to finish hardware MTU configuration in hns3 VF PMD
driver, there is no need to stop the port for hns3 VF device, and
the MTU value issued by hns3 VF PMD driver must be less than or
equal to PF's MTU.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c