We should report the network header type in the work completion so that the kernel can infer the right RoCE type headers.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -125,7 +125,8 @@ enum pvrdma_wc_flags { · 124 unmodified lines | ||
| 125 | 125 | PVRDMA_WC_IP_CSUM_OK = 1 << 3, |
| 126 | 126 | PVRDMA_WC_WITH_SMAC = 1 << 4, |
| 127 | 127 | PVRDMA_WC_WITH_VLAN = 1 << 5, |
| 128 | − PVRDMA_WC_FLAGS_MAX = PVRDMA_WC_WITH_VLAN, | |
| 128 | + PVRDMA_WC_WITH_NETWORK_HDR_TYPE = 1 << 6, | |
| 129 | + PVRDMA_WC_FLAGS_MAX = PVRDMA_WC_WITH_NETWORK_HDR_TYPE, | |
| 129 | 130 | }; |
| 130 | 131 | |
| 131 | 132 | struct pvrdma_alloc_ucontext_resp { |
| @@ -283,7 +284,8 @@ struct pvrdma_cqe { · 151 unmodified lines | ||
| 283 | 284 | __u8 dlid_path_bits; |
| 284 | 285 | __u8 port_num; |
| 285 | 286 | __u8 smac[6]; |
| 286 | − __u8 reserved2[7]; /* Pad to next power of 2 (64). */ | |
| 287 | + __u8 network_hdr_type; | |
| 288 | + __u8 reserved2[6]; /* Pad to next power of 2 (64). */ | |
| 287 | 289 | }; |
| 288 | 290 | |
| 289 | 291 | #endif /* __VMW_PVRDMA_ABI_H__ */ |