summaryrefslogtreecommitdiff
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-12-08 15:34:13 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-11 09:45:59 -0500
commita0b586fa75a69578ecf10b40582eed9b35de2432 (patch)
treee4570556ea19c636996b52b265cdc1ddc2527942 /net/core/rtnetlink.c
parent51e18a453f5f59a40c721d4aeab082b4e2e9fac6 (diff)
downloadlwn-a0b586fa75a69578ecf10b40582eed9b35de2432.tar.gz
lwn-a0b586fa75a69578ecf10b40582eed9b35de2432.zip
rtnetlink: fix typo in GSO max segments
Fixes: 46e6b992c250 ("rtnetlink: allow GSO maximums to be set on device creation") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 412ebf0b09c6..c688dc564b11 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -2684,7 +2684,7 @@ struct net_device *rtnl_create_link(struct net *net,
if (tb[IFLA_GSO_MAX_SIZE])
netif_set_gso_max_size(dev, nla_get_u32(tb[IFLA_GSO_MAX_SIZE]));
if (tb[IFLA_GSO_MAX_SEGS])
- dev->gso_max_size = nla_get_u32(tb[IFLA_GSO_MAX_SEGS]);
+ dev->gso_max_segs = nla_get_u32(tb[IFLA_GSO_MAX_SEGS]);
return dev;
}