port_cap_flags2 represents IBTA PortInfo:CapabilityMask2. The field safely extends the RDMA_NLDEV_ATTR_CAP_FLAGS operand as it was exported as 64 bit to allow this kind of extension.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -283,6 +283,9 @@ enum rdma_nldev_attr { · 282 unmodified lines | ||
| 283 | 283 | |
| 284 | 284 | /* |
| 285 | 285 | * Device and port capabilities |
| 286 | + * | |
| 287 | + * When used for port info, first 32-bits are CapabilityMask followed by | |
| 288 | + * 16-bit CapabilityMask2. | |
| 286 | 289 | */ |
| 287 | 290 | RDMA_NLDEV_ATTR_CAP_FLAGS, /* u64 */ |
| 288 | 291 | |