Thread (2 messages) flat view 2 messages, 2 authors, 2012-01-26
STALE5315d

[patch v2, kernel 3.2.1] RTNETLINK adjusting values of min_ifinfo_dump_size

From: Stefan Gula <hidden>
Date: 2012-01-26 21:04:36
Also in: lkml

From: Stefan Gula <redacted>

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: Stefan Gula <redacted>

---
V2-changelog: adjusted commit message
--- linux-3.2.1-orig/net/core/rtnetlink.c	2012-01-12 20:42:45.000000000 +0100
+++ linux/net/core/rtnetlink.c	2012-01-24 14:26:58.083219352 +0100
@@ -1506,6 +1506,9 @@ errout:
 
 	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;
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help