net: genetlink: parse attrs and store in contect info struct during dumpit
authorJiri Pirko <jiri@mellanox.com>
Sat, 5 Oct 2019 18:04:36 +0000 (20:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 13:44:47 +0000 (15:44 +0200)
commitbf813b0afeae2f012f0e527a526c1b78ca21ad82
treecb945bf09a72f1f0c686c434d27de3b50639ba83
parentc10e6cf85e7d984a156052daeedaf20a1f38824f
net: genetlink: parse attrs and store in contect info struct during dumpit

Extend the dumpit info struct for attrs. Instead of existing attribute
validation do parse them and save in the info struct. Caller can benefit
from this and does not have to do parse itself. In order to properly
free attrs, genl_family pointer needs to be added to dumpit info struct
as well.

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