]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2e33f0baec0f48fce38138a609c41bc534e27a7
tree52e0f04169b29e7af7c2a12eb1ffbefd6fba82b5
parentc07c3bf78d0c45ba0c120b653057c02db01b3581
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