Skip to content

Commit a0b586f

Browse files
shemmingerdavem330
authored andcommitted
rtnetlink: fix typo in GSO max segments
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>
1 parent 51e18a4 commit a0b586f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/rtnetlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ struct net_device *rtnl_create_link(struct net *net,
26842684
if (tb[IFLA_GSO_MAX_SIZE])
26852685
netif_set_gso_max_size(dev, nla_get_u32(tb[IFLA_GSO_MAX_SIZE]));
26862686
if (tb[IFLA_GSO_MAX_SEGS])
2687-
dev->gso_max_size = nla_get_u32(tb[IFLA_GSO_MAX_SEGS]);
2687+
dev->gso_max_segs = nla_get_u32(tb[IFLA_GSO_MAX_SEGS]);
26882688

26892689
return dev;
26902690
}

0 commit comments

Comments
 (0)