rtnetlink: fix typo in GSO max segments
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 8 Dec 2017 23:34:13 +0000 (15:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 14:45:59 +0000 (09:45 -0500)
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>
net/core/rtnetlink.c

index 412ebf0b09c6d189b6e105fdc126695e4137b1ea..c688dc564b119acf6850f7354d76a26fd0ab2ed8 100644 (file)
@@ -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;
 }