diff options
author | Samuel Mendoza-Jonas | 2018-03-05 01:39:05 +0100 |
---|---|---|
committer | David S. Miller | 2018-03-05 16:43:37 +0100 |
commit | 955dc68cb9b23b42999cafe6df3684309bc686c6 (patch) | |
tree | b357c2668aba700e94a7e4a3a87b61eca62ea66a /net/ncsi/ncsi-netlink.h | |
parent | tcp: add ca_state stat in SCM_TIMESTAMPING_OPT_STATS (diff) | |
download | kernel-qcow2-linux-955dc68cb9b23b42999cafe6df3684309bc686c6.tar.gz kernel-qcow2-linux-955dc68cb9b23b42999cafe6df3684309bc686c6.tar.xz kernel-qcow2-linux-955dc68cb9b23b42999cafe6df3684309bc686c6.zip |
net/ncsi: Add generic netlink family
Add a generic netlink family for NCSI. This supports three commands;
NCSI_CMD_PKG_INFO which returns information on packages and their
associated channels, NCSI_CMD_SET_INTERFACE which allows a specific
package or package/channel combination to be set as the preferred
choice, and NCSI_CMD_CLEAR_INTERFACE which clears any preferred setting.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi/ncsi-netlink.h')
-rw-r--r-- | net/ncsi/ncsi-netlink.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/ncsi/ncsi-netlink.h b/net/ncsi/ncsi-netlink.h new file mode 100644 index 000000000000..91a5c256f8c4 --- /dev/null +++ b/net/ncsi/ncsi-netlink.h @@ -0,0 +1,20 @@ +/* + * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef __NCSI_NETLINK_H__ +#define __NCSI_NETLINK_H__ + +#include <linux/netdevice.h> + +#include "internal.h" + +int ncsi_init_netlink(struct net_device *dev); +int ncsi_unregister_netlink(struct net_device *dev); + +#endif /* __NCSI_NETLINK_H__ */ |