mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
IB/mlx5: Set network_hdr_type upon RoCE responder completion
When handling a responder completion, if the link layer is Ethernet, set the work completion network_hdr_type field according to CQE's info and the IB_WC_WITH_NETWORK_HDR_TYPE flag. Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
3f89a643eb
commit
cb34be6da2
2 changed files with 23 additions and 0 deletions
|
@ -628,6 +628,12 @@ enum {
|
|||
CQE_RSS_HTYPE_L4 = 0x3 << 2,
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_CQE_ROCE_L3_HEADER_TYPE_GRH = 0x0,
|
||||
MLX5_CQE_ROCE_L3_HEADER_TYPE_IPV6 = 0x1,
|
||||
MLX5_CQE_ROCE_L3_HEADER_TYPE_IPV4 = 0x2,
|
||||
};
|
||||
|
||||
enum {
|
||||
CQE_L2_OK = 1 << 0,
|
||||
CQE_L3_OK = 1 << 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue