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
38#define SMC_GENL_FAMILY_VERSION 138#define SMC_GENL_FAMILY_VERSION 1
39 39
40#define SMC_PCI_ID_STR_LEN 16 /* Max length of pci id string */40#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 */
41 44
42/* SMC_GENL_FAMILY commands */45/* SMC_GENL_FAMILY commands */
43enum {46enum {
@@ -49,6 +52,10 @@ enum { · 5 unmodified lines
49 SMC_NETLINK_GET_DEV_SMCR,52 SMC_NETLINK_GET_DEV_SMCR,
50 SMC_NETLINK_GET_STATS,53 SMC_NETLINK_GET_STATS,
51 SMC_NETLINK_GET_FBACK_STATS,54 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,
52};59};
53 60
54/* SMC_GENL_FAMILY top level attributes */61/* SMC_GENL_FAMILY top level attributes */
@@ -242,4 +249,12 @@ enum { · 187 unmodified lines
242 __SMC_NLA_FBACK_STATS_MAX,249 __SMC_NLA_FBACK_STATS_MAX,
243 SMC_NLA_FBACK_STATS_MAX = __SMC_NLA_FBACK_STATS_MAX - 1250 SMC_NLA_FBACK_STATS_MAX = __SMC_NLA_FBACK_STATS_MAX - 1
244};251};
252
253/* SMC_NETLINK_UEID attributes */
254enum {
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};
245#endif /* _UAPI_LINUX_SMC_H */260#endif /* _UAPI_LINUX_SMC_H */