diff options
author | 2017-08-28 01:20:26 +0800 | |
---|---|---|
committer | 2017-08-28 16:43:46 -0700 | |
commit | 52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a (patch) | |
tree | fb5638089d31a417033b04a27572203d92c92c92 /drivers/net/ethernet/huawei | |
parent | Merge branch 'irda-move-to-staging' (diff) | |
download | linux-52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a.tar.gz linux-52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a.tar.bz2 linux-52f31422d462d1a0cb3ed3f2de7d9d34d1a6e46a.zip |
net-next/hinic: Fix MTU limitation
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>
Diffstat (limited to 'drivers/net/ethernet/huawei')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |