]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa97a7fc27d2117479e9e8d79a526401b11d8ed0
treecb945bf09a72f1f0c686c434d27de3b50639ba83
parent61a1afebc302e079cc8e8de0a6b3e5974f3cd6fe
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