aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-04-10 01:46:53 +0000
committerJakub Kicinski <[email protected]>2025-04-11 03:14:41 +0000
commite0a7903c323f37a71dcdafafa749dfb3beedff3c (patch)
tree6e2a8ba0d7bb3e1db08129ab9a729e276b4dad27 /net/core/dev_api.c
parenttools: ynl: support creating non-genl sockets (diff)
downloadkernel-e0a7903c323f37a71dcdafafa749dfb3beedff3c.tar.gz
kernel-e0a7903c323f37a71dcdafafa749dfb3beedff3c.zip
tools: ynl-gen: don't consider requests with fixed hdr empty
C codegen skips generating the structs if request/reply has no attrs. In such cases the request op takes no argument and return int (rather than response struct). In case of classic netlink a lot of information gets passed using the fixed struct, however, so adjust the logic to consider a request empty only if it has no attrs _and_ no fixed struct. Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions