History

net/smc: add support for user defined EIDs

SMC-Dv2 allows users to define EIDs which allows to create separate name spaces enabling users to cluster their SMC-Dv2 connections. Add support for user defined EIDs and extent the generic netlink interface so users can add, remove and dump EIDs.

Karsten Graul committed 5 years ago

Commit fa086661 parent f787e3c8 files · +335 −31Browse files

Showing the changes to include/uapi (1 of 8 files). Show all

Unified · Split

include/uapi/linux/smc.h+15−0
@@ -38,6 +38,9 @@ enum { /* SMC PNET Table commands */ · 37 unmodified lines
3838 #define SMC_GENL_FAMILY_VERSION 1
3939
4040 #define SMC_PCI_ID_STR_LEN 16 /* Max length of pci id string */
41+#define SMC_MAX_HOSTNAME_LEN 32 /* Max length of the hostname */
42+#define SMC_MAX_UEID 4 /* Max number of user EIDs */
43+#define SMC_MAX_EID_LEN 32 /* Max length of an EID */
4144
4245 /* SMC_GENL_FAMILY commands */
4346 enum {
@@ -49,6 +52,10 @@ enum { · 5 unmodified lines
4952 SMC_NETLINK_GET_DEV_SMCR,
5053 SMC_NETLINK_GET_STATS,
5154 SMC_NETLINK_GET_FBACK_STATS,
55+ SMC_NETLINK_DUMP_UEID,
56+ SMC_NETLINK_ADD_UEID,
57+ SMC_NETLINK_REMOVE_UEID,
58+ SMC_NETLINK_FLUSH_UEID,
5259 };
5360
5461 /* SMC_GENL_FAMILY top level attributes */
@@ -242,4 +249,12 @@ enum { · 187 unmodified lines
242249 __SMC_NLA_FBACK_STATS_MAX,
243250 SMC_NLA_FBACK_STATS_MAX = __SMC_NLA_FBACK_STATS_MAX - 1
244251 };
252+
253+/* SMC_NETLINK_UEID attributes */
254+enum {
255+ SMC_NLA_EID_TABLE_UNSPEC,
256+ SMC_NLA_EID_TABLE_ENTRY, /* string */
257+ __SMC_NLA_EID_TABLE_MAX,
258+ SMC_NLA_EID_TABLE_MAX = __SMC_NLA_EID_TABLE_MAX - 1
259+};
245260 #endif /* _UAPI_LINUX_SMC_H */