Skip to contentSkip to conversation

RTNETLINK adjusting values of min_ifinfo_dump_size

PATCH Applied Stefan Gula 2 participants 2 messages Jan 26, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 RTNETLINK adjusting values of min_ifinfo_dump_size

From: Stefan Gula <[email protected]>

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

---
V2-changelog: adjusted commit message

net/core/rtnetlink.c +3 -0
@@ -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;
 }
maintainer Applied
#1 lore raw

From: Stefan Gula <[email protected]>
Date: Thu, 26 Jan 2012 22:01:06 +0100 (CET)

Quoted 7 lines

From: Stefan Gula <[email protected]>

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

Applied, but:

net/core/rtnetlink.c errout: · line 1511

Quoted 3 lines
net/core/rtnetlink.c +3 -0
+	min_ifinfo_dump_size = max_t(u16, if_nlmsg_size(dev),
+					min_ifinfo_dump_size);
+

The second line is not properly indented, the first non-space character should line up with the first column after the openning parenthesis on the previous line.

I fixed this up, but really this was a lot of tooth pulling to get you to post this patch correctly. You cannot consume this much maintainer and reviewer resources in the future.