Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720891 > unrolled thread

[PATCH V2 net-next] net-next/hinic: Fix MTU limitation

Started byAviad Krawczyk <aviad.krawczyk@huawei.com>
First post2017-08-27 19:30 +0200
Last post2017-08-29 01:50 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH V2 net-next] net-next/hinic: Fix MTU limitation Aviad Krawczyk <aviad.krawczyk@huawei.com> - 2017-08-27 19:30 +0200
    Re: [PATCH V2 net-next] net-next/hinic: Fix MTU limitation Andrew Lunn <andrew@lunn.ch> - 2017-08-27 21:20 +0200
    Re: [PATCH V2 net-next] net-next/hinic: Fix MTU limitation David Miller <davem@davemloft.net> - 2017-08-29 01:50 +0200

#1720891 — [PATCH V2 net-next] net-next/hinic: Fix MTU limitation

FromAviad Krawczyk <aviad.krawczyk@huawei.com>
Date2017-08-27 19:30 +0200
Subject[PATCH V2 net-next] net-next/hinic: Fix MTU limitation
Message-ID<uj9xN-2j1-31@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1720909

FromAndrew Lunn <andrew@lunn.ch>
Date2017-08-27 21:20 +0200
Message-ID<ujbgd-3uv-9@gated-at.bofh.it>
In reply to#1720891
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

[toc] | [prev] | [next] | [standalone]


#1722059

FromDavid Miller <davem@davemloft.net>
Date2017-08-29 01:50 +0200
Message-ID<ujBX4-3t0-3@gated-at.bofh.it>
In reply to#1720891
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web