Skip to content

Commit

Permalink
Merge branch 'tatyana-en-wq-size-raw-attr-status'
Browse files Browse the repository at this point in the history
* tatyana-en-wq-size-raw-attr-status:
  providers/irdma: Remove enum irdma_status_code
  providers/irdma: Use HW specific minimum WQ size
  providers/irdma: Allow accurate reporting on QP max send/recv WR
  Update kernel headers
  • Loading branch information
rleon committed Sep 18, 2023
2 parents d854e1d + a659e81 commit 3e03951
Show file tree
Hide file tree
Showing 10 changed files with 249 additions and 291 deletions.
9 changes: 9 additions & 0 deletions kernel-headers/rdma/irdma-abi.h
Expand Up @@ -22,10 +22,16 @@ enum irdma_memreg_type {
IRDMA_MEMREG_TYPE_CQ = 2,
};

enum {
IRDMA_ALLOC_UCTX_USE_RAW_ATTR = 1 << 0,
IRDMA_ALLOC_UCTX_MIN_HW_WQ_SIZE = 1 << 1,
};

struct irdma_alloc_ucontext_req {
__u32 rsvd32;
__u8 userspace_ver;
__u8 rsvd8[3];
__aligned_u64 comp_mask;
};

struct irdma_alloc_ucontext_resp {
Expand All @@ -46,6 +52,9 @@ struct irdma_alloc_ucontext_resp {
__u16 max_hw_sq_chunk;
__u8 hw_rev;
__u8 rsvd2;
__aligned_u64 comp_mask;
__u16 min_hw_wq_size;
__u8 rsvd3[6];
};

struct irdma_alloc_pd_resp {
Expand Down
11 changes: 5 additions & 6 deletions providers/irdma/defs.h
@@ -1,11 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */
/* Copyright (c) 2015 - 2021 Intel Corporation */
/* Copyright (c) 2015 - 2023 Intel Corporation */
#ifndef IRDMA_DEFS_H
#define IRDMA_DEFS_H

#include "osdep.h"


#define IRDMA_QP_TYPE_IWARP 1
#define IRDMA_QP_TYPE_UDA 2
#define IRDMA_QP_TYPE_ROCE_RC 3
Expand Down Expand Up @@ -175,7 +174,7 @@
(_ring).head = ((_ring).head + 1) % size; \
(_retcode) = 0; \
} else { \
(_retcode) = IRDMA_ERR_RING_FULL; \
(_retcode) = ENOMEM; \
} \
}
#define IRDMA_RING_MOVE_HEAD_BY_COUNT(_ring, _count, _retcode) \
Expand All @@ -186,7 +185,7 @@
(_ring).head = ((_ring).head + (_count)) % size; \
(_retcode) = 0; \
} else { \
(_retcode) = IRDMA_ERR_RING_FULL; \
(_retcode) = ENOMEM; \
} \
}
#define IRDMA_SQ_RING_MOVE_HEAD(_ring, _retcode) \
Expand All @@ -197,7 +196,7 @@
(_ring).head = ((_ring).head + 1) % size; \
(_retcode) = 0; \
} else { \
(_retcode) = IRDMA_ERR_RING_FULL; \
(_retcode) = ENOMEM; \
} \
}
#define IRDMA_SQ_RING_MOVE_HEAD_BY_COUNT(_ring, _count, _retcode) \
Expand All @@ -208,7 +207,7 @@
(_ring).head = ((_ring).head + (_count)) % size; \
(_retcode) = 0; \
} else { \
(_retcode) = IRDMA_ERR_RING_FULL; \
(_retcode) = ENOMEM; \
} \
}
#define IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(_ring, _count) \
Expand Down
4 changes: 2 additions & 2 deletions providers/irdma/i40iw_hw.h
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */
/* Copyright (c) 2015 - 2021 Intel Corporation */
/* Copyright (c) 2015 - 2023 Intel Corporation */
#ifndef I40IW_HW_H
#define I40IW_HW_H

Expand All @@ -17,11 +17,11 @@ enum i40iw_device_caps_const {
I40IW_MAX_CQ_SIZE = 1048575,
I40IW_MAX_OUTBOUND_MSG_SIZE = 2147483647,
I40IW_MAX_INBOUND_MSG_SIZE = 2147483647,
I40IW_MIN_WQ_SIZE = 4 /* WQEs */,
};

#define I40IW_QP_WQE_MIN_SIZE 32
#define I40IW_QP_WQE_MAX_SIZE 128
#define I40IW_QP_SW_MIN_WQSIZE 4
#define I40IW_MAX_RQ_WQE_SHIFT 2
#define I40IW_MAX_QUANTA_PER_WR 2

Expand Down
3 changes: 2 additions & 1 deletion providers/irdma/irdma.h
@@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */
/* Copyright (c) 2017 - 2021 Intel Corporation */
/* Copyright (c) 2017 - 2023 Intel Corporation */
#ifndef IRDMA_H
#define IRDMA_H

Expand All @@ -21,6 +21,7 @@ struct irdma_uk_attrs {
__u32 min_hw_cq_size;
__u32 max_hw_cq_size;
__u16 max_hw_sq_chunk;
__u16 min_hw_wq_size;
__u8 hw_rev;
};

Expand Down
72 changes: 0 additions & 72 deletions providers/irdma/status.h

This file was deleted.

0 comments on commit 3e03951

Please sign in to comment.