mirror of https://gitee.com/openkylin/linux.git
rtnetlink: fix typo in GSO max segments
Fixes: 46e6b992c2
("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>
This commit is contained in:
parent
51e18a453f
commit
a0b586fa75
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue