* [PATCH V2 net-next] net-next/hinic: Fix MTU limitation
@ 2017-08-27 17:20 Aviad Krawczyk
2017-08-27 19:13 ` Andrew Lunn
2017-08-28 23:44 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Aviad Krawczyk @ 2017-08-27 17:20 UTC (permalink / raw)
To: davem; +Cc: linux-kernel, netdev, zhaochen6, andrew, Aviad Krawczyk
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>
---
drivers/net/ethernet/huawei/hinic/hinic_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c
index ae7ad48..eb53bd9 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;
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V2 net-next] net-next/hinic: Fix MTU limitation
2017-08-27 17:20 [PATCH V2 net-next] net-next/hinic: Fix MTU limitation Aviad Krawczyk
@ 2017-08-27 19:13 ` Andrew Lunn
2017-08-28 23:44 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2017-08-27 19:13 UTC (permalink / raw)
To: Aviad Krawczyk; +Cc: davem, linux-kernel, netdev, zhaochen6
On Mon, Aug 28, 2017 at 01:20:26AM +0800, Aviad Krawczyk wrote:
> 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>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH V2 net-next] net-next/hinic: Fix MTU limitation
2017-08-27 17:20 [PATCH V2 net-next] net-next/hinic: Fix MTU limitation Aviad Krawczyk
2017-08-27 19:13 ` Andrew Lunn
@ 2017-08-28 23:44 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-08-28 23:44 UTC (permalink / raw)
To: aviad.krawczyk; +Cc: linux-kernel, netdev, zhaochen6, andrew
From: Aviad Krawczyk <aviad.krawczyk@huawei.com>
Date: Mon, 28 Aug 2017 01:20:26 +0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-28 23:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-27 17:20 [PATCH V2 net-next] net-next/hinic: Fix MTU limitation Aviad Krawczyk
2017-08-27 19:13 ` Andrew Lunn
2017-08-28 23:44 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox