From: Aviad Krawczyk Date: Sun, 27 Aug 2017 17:20:26 +0000 (+0800) Subject: net-next/hinic: Fix MTU limitation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;