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
4646 SMC_NETLINK_GET_LINK_SMCR,
4747 SMC_NETLINK_GET_LGR_SMCD,
4848 SMC_NETLINK_GET_DEV_SMCD,
49+ SMC_NETLINK_GET_DEV_SMCR,
4950 };
5051
5152 /* SMC_GENL_FAMILY top level attributes */
@@ -56,6 +57,7 @@ enum { · 4 unmodified lines
5657 SMC_GEN_LINK_SMCR, /* nest */
5758 SMC_GEN_LGR_SMCD, /* nest */
5859 SMC_GEN_DEV_SMCD, /* nest */
60+ SMC_GEN_DEV_SMCR, /* nest */
5961 __SMC_GEN_MAX,
6062 SMC_GEN_MAX = __SMC_GEN_MAX - 1
6163 };
@@ -127,16 +129,20 @@ enum { · 65 unmodified lines
127129 SMC_NLA_LGR_D_MAX = __SMC_NLA_LGR_D_MAX - 1
128130 };
129131
130−/* SMC_NLA_DEV_PORT attributes */
132+/* SMC_NLA_DEV_PORT nested attributes */
131133 enum {
132134 SMC_NLA_DEV_PORT_UNSPEC,
133135 SMC_NLA_DEV_PORT_PNET_USR, /* u8 */
134136 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 */
135141 __SMC_NLA_DEV_PORT_MAX,
136142 SMC_NLA_DEV_PORT_MAX = __SMC_NLA_DEV_PORT_MAX - 1
137143 };
138144
139−/* SMC_GEN_DEV_SMCD attributes */
145+/* SMC_GEN_DEV_SMCD and SMC_GEN_DEV_SMCR attributes */
140146 enum {
141147 SMC_NLA_DEV_UNSPEC,
142148 SMC_NLA_DEV_USE_CNT, /* u32 */
@@ -147,7 +153,10 @@ enum { · 4 unmodified lines
147153 SMC_NLA_DEV_PCI_DEVICE, /* u16 */
148154 SMC_NLA_DEV_PCI_ID, /* string */
149155 SMC_NLA_DEV_PORT, /* nest */
156+ SMC_NLA_DEV_PORT2, /* nest */
157+ SMC_NLA_DEV_IB_NAME, /* string */
150158 __SMC_NLA_DEV_MAX,
151159 SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1
152160 };
161+
153162 #endif /* _UAPI_LINUX_SMC_H */