OSDN Git Service

ethtool: add default notification handler
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Dec 2019 14:55:58 +0000 (15:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:40:02 +0000 (16:40 -0800)
commit5cf2a548bcbd3da3e79adb0b64ef96dbb9988d78
treeb2fbe9b33b5441f6d827bbcaa40bf906a503e739
parenta53f3d41e4d3df46aba254ba51e7fbe45470fece
ethtool: add default notification handler

The ethtool netlink notifications have the same format as related GET
replies so that if generic GET handling framework is used to process GET
requests, its callbacks and instance of struct get_request_ops can be
also used to compose corresponding notification message.

Provide function ethnl_std_notify() to be used as notification handler in
ethnl_notify_handlers table.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/netlink.c
net/ethtool/netlink.h