Re: [PATCH 0/9] genetlink: reduce ops size and complexity (v2)

From
David Miller <davem@davemloft.net>
Date
2013-11-14 22:12:04
Also in
netfilter-devel
Reply to
Johannes Berg, 2013-11-14
From: Johannes Berg <johannes@sipsolutions.net>
Date: Thu, 14 Nov 2013 17:14:38 +0100
As before - reduce the complexity and data/code size of genetlink ops
by making them an array rather than a linked list. Most users already
use an array thanks to genl_register_family_with_ops(), so convert the
remaining ones allowing us to get rid of the list head in each op.

Also make them const, this just makes sense at that point and the security
people like making function pointers const as well :-)
I have to say, this is an absolutely fantastic space usage and
complexity improvement.

Applied, thanks a lot.
Thread (29 messages) 29 messages, 3 authors, last reply 2013-11-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help