]> git.baikalelectronics.ru Git - kernel.git/commit
net: genetlink: introduce dump info struct to be available during dumpit op
authorJiri Pirko <jiri@mellanox.com>
Sat, 5 Oct 2019 18:04:34 +0000 (20:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 13:44:46 +0000 (15:44 +0200)
commit80f15e2f47e0ed073e0e9474647cde2be6fa33ae
tree11fac2365b343bca6cbb18ea79111246998a90aa
parent6abb97f707661e79e6a9d1722afa23acc7733a79
net: genetlink: introduce dump info struct to be available during dumpit op

Currently the cb->data is taken by ops during non-parallel dumping.
Introduce a new structure genl_dumpit_info and store the ops there.
Distribute the info to both non-parallel and parallel dumping. Also add
a helper genl_dumpit_info() to easily get the info structure in the
dumpit callback from cb.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h
net/netlink/genetlink.c