ethtool: helper functions for netlink interface
authorMichal Kubecek <mkubecek@suse.cz>
Fri, 27 Dec 2019 14:55:23 +0000 (15:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Dec 2019 00:40:01 +0000 (16:40 -0800)
commit041b1c5d4a53e97fc9e029ae32469552ca12cb9b
tree03282a91e97cf42a83f15df49337387b9c51640e
parent2b4a8990b7df55875745a80a609a1ceaaf51f322
ethtool: helper functions for netlink interface

Add common request/reply header definition and helpers to parse request
header and fill reply header. Provide ethnl_update_* helpers to update
structure members from request attributes (to be used for *_SET requests).

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>
include/uapi/linux/ethtool_netlink.h
net/ethtool/netlink.c
net/ethtool/netlink.h