[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1512846693-19983-1-git-send-email-solio.sarabia@intel.com>
Date: Sat, 9 Dec 2017 11:11:33 -0800
From: Solio Sarabia <solio.sarabia@...el.com>
To: davem@...emloft.net, stephen@...workplumber.org
Cc: netdev@...r.kernel.org, sthemmin@...rosoft.com,
shiny.sebastian@...el.com, solio.sarabia@...el.com
Subject: [PATCH net-next] veth: fix setting peer gso values
GSO values are not correctly set for peer and dev. When creating
the veth link, GSO attributes are set for peer device, propagate
these values from peer to dev.
Signed-off-by: Solio Sarabia <solio.sarabia@...el.com>
---
drivers/net/veth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index a69ad39..d936c8a 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -410,8 +410,8 @@ static int veth_newlink(struct net *src_net, struct net_device *dev,
if (ifmp && (dev->ifindex != 0))
peer->ifindex = ifmp->ifi_index;
- peer->gso_max_size = dev->gso_max_size;
- peer->gso_max_segs = dev->gso_max_segs;
+ dev->gso_max_size = peer->gso_max_size;
+ dev->gso_max_segs = peer->gso_max_segs;
err = register_netdevice(peer);
put_net(net);
--
2.7.4
Powered by blists - more mailing lists