net: hns3: Add support to change MTU in HNS3 hardware
authorSalil <salil.mehta@huawei.com>
Mon, 21 Aug 2017 16:05:24 +0000 (17:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 18:02:21 +0000 (11:02 -0700)
commita8e8b7ff35175ab0a55ef0fa8560c3d5ffdb2818
tree52e0f04169b29e7af7c2a12eb1ffbefd6fba82b5
parent06552f8e18fb271233318e82e983f29d9cb1d72e
net: hns3: Add support to change MTU in HNS3 hardware

This patch adds the following support to the HNS3 driver:
1. Support to change the Maximum Transmission Unit of a
   port in the HNS NIC hardware.
2. Initializes the supported MTU range for the netdevice.

Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.h