net-next/hinic: Fix MTU limitation
authorAviad Krawczyk <aviad.krawczyk@huawei.com>
Sun, 27 Aug 2017 17:20:26 +0000 (01:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 23:43:46 +0000 (16:43 -0700)
Fix the hw MTU limitation by setting max_mtu

Signed-off-by: Aviad Krawczyk <aviad.krawczyk@huawei.com>
Signed-off-by: Zhao Chen <zhaochen6@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_main.c

index ae7ad48c9f65208ecaa681ed961285fc6e3e9f44..eb53bd93065e0da12ddd744feffdd34f853c952e 100644 (file)
@@ -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;