Thread (30 messages) 30 messages, 5 authors, 2023-08-10

Re: [PATCH net-next 03/10] genetlink: remove userhdr from struct genl_info

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2023-08-09 21:40:13
Also in: linux-block

On Wed, 2023-08-09 at 11:26 -0700, Jakub Kicinski wrote:
Only three families use info->userhdr and fixed headers
are discouraged for new families. So remove the pointer
from struct genl_info to save some space. Compute
the header pointer at runtime. Saved space will be used
for a family pointer in later patches.
Seems fine to me, but I'm not sure I buy the rationale that it's for
saving space - it's a single pointer on the stack? I'd probably argue
the computation being pointless for basically everyone except for a
handful users?

Reviewed-by: Johannes Berg <johannes@sipsolutions.net>

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help