From 52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a Mon Sep 17 00:00:00 2001 From: Aviad Krawczyk Date: Mon, 28 Aug 2017 01:20:26 +0800 Subject: [PATCH] net-next/hinic: Fix MTU limitation Fix the hw MTU limitation by setting max_mtu Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c index ae7ad48c9f65..eb53bd93065e 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_main.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_main.c @@ -919,6 +919,7 @@ static int nic_dev_init(struct pci_dev *pdev) netdev->netdev_ops = &hinic_netdev_ops; netdev->ethtool_ops = &hinic_ethtool_ops; + netdev->max_mtu = ETH_MAX_MTU; nic_dev = netdev_priv(netdev); nic_dev->netdev = netdev; -- 2.20.1