OSDN Git Service

veth: set peer GSO values
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 7 Dec 2017 23:40:20 +0000 (15:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:57 +0000 (09:17 +0100)
commitc3fd4d3c1966b34bad24ecd6629ebe55b865df10
tree88fb50c427bded47b12075ba300dc106ce56e4bd
parentff54d5e95ad2ba7067ddd4764136bbded8a8129c
veth: set peer GSO values

[ Upstream commit 72d24955b44a4039db54a1c252b5031969eeaac3 ]

When new veth is created, and GSO values have been configured
on one device, clone those values to the peer.

For example:
   # ip link add dev vm1 gso_max_size 65530 type veth peer name vm2

This should create vm1 <--> vm2 with both having GSO maximum
size set to 65530.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/veth.c