Add new netlink command to obtain system information of the smc module.
Showing the changes to include/uapi/linux (1 of 7 files). Show all
Unified · Split
| @@ -37,11 +37,29 @@ enum { /* SMC PNET Table commands */ · 36 unmodified lines | ||
| 37 | 37 | #define SMC_GENL_FAMILY_NAME "SMC_GEN_NETLINK" |
| 38 | 38 | #define SMC_GENL_FAMILY_VERSION 1 |
| 39 | 39 | |
| 40 | +/* SMC_GENL_FAMILY commands */ | |
| 41 | +enum { | |
| 42 | + SMC_NETLINK_GET_SYS_INFO = 1, | |
| 43 | +}; | |
| 44 | + | |
| 40 | 45 | /* SMC_GENL_FAMILY top level attributes */ |
| 41 | 46 | enum { |
| 42 | 47 | SMC_GEN_UNSPEC, |
| 48 | + SMC_GEN_SYS_INFO, /* nest */ | |
| 43 | 49 | __SMC_GEN_MAX, |
| 44 | 50 | SMC_GEN_MAX = __SMC_GEN_MAX - 1 |
| 45 | 51 | }; |
| 46 | 52 | |
| 53 | +/* SMC_GEN_SYS_INFO attributes */ | |
| 54 | +enum { | |
| 55 | + SMC_NLA_SYS_UNSPEC, | |
| 56 | + SMC_NLA_SYS_VER, /* u8 */ | |
| 57 | + SMC_NLA_SYS_REL, /* u8 */ | |
| 58 | + SMC_NLA_SYS_IS_ISM_V2, /* u8 */ | |
| 59 | + SMC_NLA_SYS_LOCAL_HOST, /* string */ | |
| 60 | + SMC_NLA_SYS_SEID, /* string */ | |
| 61 | + __SMC_NLA_SYS_MAX, | |
| 62 | + SMC_NLA_SYS_MAX = __SMC_NLA_SYS_MAX - 1 | |
| 63 | +}; | |
| 64 | + | |
| 47 | 65 | #endif /* _UAPI_LINUX_SMC_H */ |