netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next 00/10] net: genetlink: parse attrs for dumpit() callback
@ 2019-10-05 18:04 Jiri Pirko
  2019-10-05 18:04 ` [patch net-next 01/10] net: genetlink: push doit/dumpit code from genl_family_rcv_msg Jiri Pirko
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: Jiri Pirko @ 2019-10-05 18:04 UTC (permalink / raw)
  To: netdev
  Cc: davem, jakub.kicinski, alex.aring, stefan, jon.maloy, ying.xue,
	johannes.berg, mkubecek, yuehaibing, mlxsw

From: Jiri Pirko <jiri@mellanox.com>

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(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-04-15 21:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-05 18:04 [patch net-next 00/10] net: genetlink: parse attrs for dumpit() callback Jiri Pirko
2019-10-05 18:04 ` [patch net-next 01/10] net: genetlink: push doit/dumpit code from genl_family_rcv_msg Jiri Pirko
2019-10-05 18:04 ` [patch net-next 02/10] net: genetlink: introduce dump info struct to be available during dumpit op Jiri Pirko
2019-10-05 18:04 ` [patch net-next 03/10] net: genetlink: push attrbuf allocation and parsing to a separate function Jiri Pirko
2019-10-05 18:04 ` [patch net-next 04/10] net: genetlink: parse attrs and store in contect info struct during dumpit Jiri Pirko
2019-10-05 18:04 ` [patch net-next 05/10] net: ieee802154: have genetlink code to parse the attrs " Jiri Pirko
2019-10-05 18:04 ` [patch net-next 06/10] net: nfc: " Jiri Pirko
2019-10-05 18:04 ` [patch net-next 07/10] net: tipc: " Jiri Pirko
2021-04-15 21:24   ` Xin Long
2019-10-05 18:04 ` [patch net-next 08/10] net: tipc: allocate attrs locally instead of using genl_family_attrbuf in compat_dumpit() Jiri Pirko
2019-10-05 18:04 ` [patch net-next 09/10] net: genetlink: remove unused genl_family_attrbuf() Jiri Pirko
2019-10-05 18:04 ` [patch net-next 10/10] devlink: have genetlink code to parse the attrs during dumpit Jiri Pirko
2019-10-06 13:45 ` [patch net-next 00/10] net: genetlink: parse attrs for dumpit() callback David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).