OSDN Git Service

net: genetlink: push doit/dumpit code from genl_family_rcv_msg
authorJiri Pirko <jiri@mellanox.com>
Sat, 5 Oct 2019 18:04:33 +0000 (20:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 13:44:46 +0000 (15:44 +0200)
commitbe064defabeff1b9e7ab96d8b4245c12a86775a5
treef9cf59bec05a57f06d1923db243dc6cb74c7b202
parent248d45f1e1934f7849fbdc35ef1e57151cf063eb
net: genetlink: push doit/dumpit code from genl_family_rcv_msg

Currently the function genl_family_rcv_msg() is quite big. Since it is
quite convenient, push code that is related to doit and dumpit ops into
separate functions.

Do small changes on the way, like rc/err unification, NULL check etc.

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