Skip to content

net: genetlink: parse attrs for dumpit() callback

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10net: genetlink: push doit/dumpit code from genl_family_rcv_msgnet/netlink/genetlink.c+96 -770 replies
2/10net: genetlink: introduce dump info struct to be available during dumpit opinclude/net/genetlink.h net/netlink/genetlink.c+52 -90 replies
3/10net: genetlink: push attrbuf allocation and parsing to a separate functionnet/netlink/genetlink.c+45 -220 replies
4/10net: genetlink: parse attrs and store in contect info struct during dumpitinclude/net/genetlink.h net/netlink/genetlink.c+26 -170 replies
5/10net: ieee802154: have genetlink code to parse the attrs during dumpitnet/ieee802154/nl802154.c+14 -250 replies
6/10net: nfc: have genetlink code to parse the attrs during dumpitnet/nfc/netlink.c+5 -120 replies
7/10net: tipc: have genetlink code to parse the attrs during dumpitnet/tipc/netlink.c net/tipc/node.c net/tipc/socket.c +1 more+9 -181 reply
8/10net: tipc: allocate attrs locally instead of using genl_family_attrbuf in compat_dumpit()net/tipc/netlink.c net/tipc/netlink.h net/tipc/netlink_compat.c+15 -170 replies
9/10net: genetlink: remove unused genl_family_attrbuf()include/net/genetlink.h net/netlink/genetlink.c+0 -210 replies
10/10devlink: have genetlink code to parse the attrs during dumpitnet/core/devlink.c+6 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch net-next 00/10] net: genetlink: parse attrs for dumpit() callback

From: Jiri Pirko <[email protected]>

In generic netlink, parsing attributes for doit() callback is already implemented. They are available in info->attrs.

For dumpit() however, each user which is interested in attributes have to parse it manually. Even though the attributes may be (depending on flag) already validated (by parse function).

Make usage of attributes in dumpit() more convenient and prepare info->attrs too.

Patchset also make the existing users of genl_family_attrbuf() converted to use info->attrs and removes the helper.

Jiri Pirko (10):
net: genetlink: push doit/dumpit code from genl_family_rcv_msg
net: genetlink: introduce dump info struct to be available during
dumpit op
net: genetlink: push attrbuf allocation and parsing to a separate
function
net: genetlink: parse attrs and store in contect info struct during
dumpit
net: ieee802154: have genetlink code to parse the attrs during dumpit
net: nfc: have genetlink code to parse the attrs during dumpit
net: tipc: have genetlink code to parse the attrs during dumpit
net: tipc: allocate attrs locally instead of using genl_family_attrbuf
in compat_dumpit()
net: genetlink: remove unused genl_family_attrbuf()
devlink: have genetlink code to parse the attrs during dumpit

 include/net/genetlink.h   |  20 ++-
 net/core/devlink.c        |  38 +----
 net/ieee802154/nl802154.c |  39 ++---
 net/netlink/genetlink.c   | 295 +++++++++++++++++++++++---------------
 net/nfc/netlink.c         |  17 +--
 net/tipc/netlink.c        |  21 +--
 net/tipc/netlink.h        |   1 -
 net/tipc/netlink_compat.c |  19 ++-
 net/tipc/node.c           |   6 +-
 net/tipc/socket.c         |   6 +-
 net/tipc/udp_media.c      |   6 +-
 11 files changed, 243 insertions(+), 225 deletions(-)
Signature · 1 line
2.21.0