Commit a0b586fa authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

rtnetlink: fix typo in GSO max segments

Fixes: 46e6b992 ("rtnetlink: allow GSO maximums to be set on device creation")
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 51e18a45
...@@ -2684,7 +2684,7 @@ struct net_device *rtnl_create_link(struct net *net, ...@@ -2684,7 +2684,7 @@ struct net_device *rtnl_create_link(struct net *net,
if (tb[IFLA_GSO_MAX_SIZE]) if (tb[IFLA_GSO_MAX_SIZE])
netif_set_gso_max_size(dev, nla_get_u32(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]) 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; return dev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment