mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
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>
This commit is contained in:
parent
70f5c98228
commit
52f31422d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user