Thread (26 messages) 26 messages, 5 authors, 2009-10-31

Re: [PATCH 5/6] bond: Implement a basic set of rtnl link ops

From: Patrick McHardy <hidden>
Date: 2009-10-30 09:33:43

Eric W. Biederman wrote:
Patrick McHardy [off-list ref] writes:
quoted
Eric W. Biederman wrote:
quoted
+static struct rtnl_link_ops bond_link_ops __read_mostly = {
+	.kind		= "bond",
+	.setup		= bond_setup,
+	.validate	= bond_validate,
+};
One more thing - you need to initialize .priv_size here so
the devices created through rtnl_link have enough private
room allocated.
Wow and the code works when I test it without that ouch!

As for rtnl_link_register it always succeeds so let's just
remove the return code and call it good.
You need unroll anyways for the other failure conditions, so
why not simply add an err1/2 and be safe for future changes?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help