Files
linux-st/include/net
Jakub Kicinski e508673696 genetlink: reorg struct genl_family
There are holes and oversized members in struct genl_family.

Before: /* size: 104, cachelines: 2, members: 16 */
After:  /* size:  88, cachelines: 2, members: 16 */

The command field in struct genlmsghdr is a u8, so no point
in the operation count being 32 bit. Also operation 0 is
usually undefined, so we only need 255 entries.

netnsok and parallel_ops are only ever initialized to true.

We can grow the fields as needed, compiler should warn us
if someone tries to assign larger constants.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-10-02 19:11:11 -07:00
..
2020-08-31 12:33:34 -07:00
2020-05-05 13:23:29 -07:00
2020-06-22 21:12:44 -07:00
2020-08-31 23:06:51 +02:00
2020-09-10 13:15:40 -07:00
2020-07-24 15:41:54 -07:00
2020-10-02 13:07:42 -07:00
2020-09-15 16:31:11 -07:00
2020-09-24 19:58:34 -07:00
2020-06-18 20:46:23 -07:00