Deliver SMCR device information via netlink based diagnostic interface.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -46,6 +46,7 @@ enum { · 45 unmodified lines | ||
| 46 | 46 | SMC_NETLINK_GET_LINK_SMCR, |
| 47 | 47 | SMC_NETLINK_GET_LGR_SMCD, |
| 48 | 48 | SMC_NETLINK_GET_DEV_SMCD, |
| 49 | + SMC_NETLINK_GET_DEV_SMCR, | |
| 49 | 50 | }; |
| 50 | 51 | |
| 51 | 52 | /* SMC_GENL_FAMILY top level attributes */ |
| @@ -56,6 +57,7 @@ enum { · 4 unmodified lines | ||
| 56 | 57 | SMC_GEN_LINK_SMCR, /* nest */ |
| 57 | 58 | SMC_GEN_LGR_SMCD, /* nest */ |
| 58 | 59 | SMC_GEN_DEV_SMCD, /* nest */ |
| 60 | + SMC_GEN_DEV_SMCR, /* nest */ | |
| 59 | 61 | __SMC_GEN_MAX, |
| 60 | 62 | SMC_GEN_MAX = __SMC_GEN_MAX - 1 |
| 61 | 63 | }; |
| @@ -127,16 +129,20 @@ enum { · 65 unmodified lines | ||
| 127 | 129 | 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 */ | |
| 131 | 133 | enum { |
| 132 | 134 | SMC_NLA_DEV_PORT_UNSPEC, |
| 133 | 135 | SMC_NLA_DEV_PORT_PNET_USR, /* u8 */ |
| 134 | 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 | 141 | __SMC_NLA_DEV_PORT_MAX, |
| 136 | 142 | 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 */ | |
| 140 | 146 | enum { |
| 141 | 147 | SMC_NLA_DEV_UNSPEC, |
| 142 | 148 | SMC_NLA_DEV_USE_CNT, /* u32 */ |
| @@ -147,7 +153,10 @@ enum { · 4 unmodified lines | ||
| 147 | 153 | SMC_NLA_DEV_PCI_DEVICE, /* u16 */ |
| 148 | 154 | SMC_NLA_DEV_PCI_ID, /* string */ |
| 149 | 155 | SMC_NLA_DEV_PORT, /* nest */ |
| 156 | + SMC_NLA_DEV_PORT2, /* nest */ | |
| 157 | + SMC_NLA_DEV_IB_NAME, /* string */ | |
| 150 | 158 | __SMC_NLA_DEV_MAX, |
| 151 | 159 | SMC_NLA_DEV_MAX = __SMC_NLA_DEV_MAX - 1 |
| 152 | 160 | }; |
| 161 | + | |
| 153 | 162 | #endif /* _UAPI_LINUX_SMC_H */ |