Skip to content

Commit

Permalink
rtnetlink: fix typo in GSO max segments
Browse files Browse the repository at this point in the history
Fixes: 46e6b99 ("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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Dec 11, 2017
1 parent 51e18a4 commit a0b586f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a0b586f

Please sign in to comment.