summaryrefslogtreecommitdiffstats
path: root/net/ncsi/ncsi-netlink.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-03-05 11:39:05 +1100
committerDavid S. Miller <davem@davemloft.net>2018-03-05 10:43:37 -0500
commit955dc68cb9b23b42999cafe6df3684309bc686c6 (patch)
treeb357c2668aba700e94a7e4a3a87b61eca62ea66a /net/ncsi/ncsi-netlink.h
parentbe631892948060f44b1ceee3132be1266932071e (diff)
downloadlinux-stable-955dc68cb9b23b42999cafe6df3684309bc686c6.tar.gz
linux-stable-955dc68cb9b23b42999cafe6df3684309bc686c6.tar.bz2
linux-stable-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.h20
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__ */