Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f18da145 authored by Stefan Gula's avatar Stefan Gula Committed by David S. Miller
Browse files

net: RTNETLINK adjusting values of min_ifinfo_dump_size



Setting link parameters on a netdevice changes the value
of if_nlmsg_size(), therefore it is necessary to recalculate
min_ifinfo_dump_size.

Signed-off-by: default avatarStefan Gula <steweg@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f2b3ee9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1509,6 +1509,9 @@ static int do_setlink(struct net_device *dev, struct ifinfomsg *ifm,

	if (send_addr_notify)
		call_netdevice_notifiers(NETDEV_CHANGEADDR, dev);
	min_ifinfo_dump_size = max_t(u16, if_nlmsg_size(dev),
				     min_ifinfo_dump_size);

	return err;
}