projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70f5c98
)
net-next/hinic: Fix MTU limitation
author
Aviad Krawczyk
<
[email protected]
>
Sun, 27 Aug 2017 17:20:26 +0000
(
01:20
+0800)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Zhao Chen <
[email protected]
>
Reviewed-by: Andrew Lunn <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/huawei/hinic/hinic_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/huawei/hinic/hinic_main.c
b/drivers/net/ethernet/huawei/hinic/hinic_main.c
index ae7ad48c9f65208ecaa681ed961285fc6e3e9f44..eb53bd93065e0da12ddd744feffdd34f853c952e 100644
(file)
--- 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;