History

net/smc: Add support for obtaining SMCR device list

Deliver SMCR device information via netlink based diagnostic interface.

Guvenc Gulce committed 5 years ago

Commit a3db10e1 parent aaf95525 files · +176 −3Browse files

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

Unified · Split

include/uapi/linux/smc.h+11−2
@@ -46,6 +46,7 @@ enum { · 45 unmodified lines
46 SMC_NETLINK_GET_LINK_SMCR,46 SMC_NETLINK_GET_LINK_SMCR,
47 SMC_NETLINK_GET_LGR_SMCD,47 SMC_NETLINK_GET_LGR_SMCD,
48 SMC_NETLINK_GET_DEV_SMCD,48 SMC_NETLINK_GET_DEV_SMCD,
49 SMC_NETLINK_GET_DEV_SMCR,
49};50};
50 51
51/* SMC_GENL_FAMILY top level attributes */52/* SMC_GENL_FAMILY top level attributes */
@@ -56,6 +57,7 @@ enum { · 4 unmodified lines
56 SMC_GEN_LINK_SMCR, /* nest */57 SMC_GEN_LINK_SMCR, /* nest */
57 SMC_GEN_LGR_SMCD, /* nest */58 SMC_GEN_LGR_SMCD, /* nest */
58 SMC_GEN_DEV_SMCD, /* nest */59 SMC_GEN_DEV_SMCD, /* nest */
60 SMC_GEN_DEV_SMCR, /* nest */
59 __SMC_GEN_MAX,61 __SMC_GEN_MAX,
60 SMC_GEN_MAX = __SMC_GEN_MAX - 162 SMC_GEN_MAX = __SMC_GEN_MAX - 1
61};63};
@@ -127,16 +129,20 @@ enum { · 65 unmodified lines
127 SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1129 SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1
128};130};
129 131
130/* SMC_NLA_DEV_PORT attributes */132/* SMC_NLA_DEV_PORT nested attributes */
131enum {133enum {
132 SMC_NLA_DEV_PORT_UNSPEC,134 SMC_NLA_DEV_PORT_UNSPEC,
133 SMC_NLA_DEV_PORT_PNET_USR, /* u8 */135 SMC_NLA_DEV_PORT_PNET_USR, /* u8 */
134 SMC_NLA_DEV_PORT_PNETID, /* string */136 SMC_NLA_DEV_PORT_PNETID, /* string */
137 SMC_NLA_DEV_PORT_NETDEV, /* u32 */
138 SMC_NLA_DEV_PORT_STATE, /* u8 */
139 SMC_NLA_DEV_PORT_VALID, /* u8 */
140 SMC_NLA_DEV_PORT_LNK_CNT, /* u32 */
135 __SMC_NLA_DEV_PORT_MAX,141 __SMC_NLA_DEV_PORT_MAX,
136 SMC_NLA_DEV_PORT_MAX = __SMC_NLA_DEV_PORT_MAX - 1142 SMC_NLA_DEV_PORT_MAX = __SMC_NLA_DEV_PORT_MAX - 1
137};143};
138 144
139/* SMC_GEN_DEV_SMCD attributes */145/* SMC_GEN_DEV_SMCD and SMC_GEN_DEV_SMCR attributes */
140enum {146enum {
141 SMC_NLA_DEV_UNSPEC,147 SMC_NLA_DEV_UNSPEC,
142 SMC_NLA_DEV_USE_CNT, /* u32 */148 SMC_NLA_DEV_USE_CNT, /* u32 */
@@ -147,7 +153,10 @@ enum { · 4 unmodified lines
147 SMC_NLA_DEV_PCI_DEVICE, /* u16 */153 SMC_NLA_DEV_PCI_DEVICE, /* u16 */
148 SMC_NLA_DEV_PCI_ID, /* string */154 SMC_NLA_DEV_PCI_ID, /* string */
149 SMC_NLA_DEV_PORT, /* nest */155 SMC_NLA_DEV_PORT, /* nest */
156 SMC_NLA_DEV_PORT2, /* nest */
157 SMC_NLA_DEV_IB_NAME, /* string */
150 __SMC_NLA_DEV_MAX,158 __SMC_NLA_DEV_MAX,
151 SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1159 SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1
152};160};
161
153#endif /* _UAPI_LINUX_SMC_H */162#endif /* _UAPI_LINUX_SMC_H */