diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2026-02-13 13:57:45 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leonro@nvidia.com> | 2026-02-25 16:15:30 +0300 |
| commit | 66011c1bd797f13124259db201ac9a430a40ba75 (patch) | |
| tree | 1610df0d0753339cb5644abcccd7ed3c069f2165 | |
| parent | a2917582887ac7c3aaccad60cb5eb876b1a83594 (diff) | |
| download | linux-66011c1bd797f13124259db201ac9a430a40ba75.tar.xz | |
RDMA/efa: Remove check for zero CQE count
Since ib_core now handles validation, the device driver no longer needs
to verify that the CQE count is non‑zero.
Link: https://patch.msgid.link/20260213-refactor-umem-v1-9-f3be85847922@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
| -rw-r--r-- | drivers/infiniband/hw/efa/efa_verbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/efa/efa_verbs.c b/drivers/infiniband/hw/efa/efa_verbs.c index 9d683cb30cba..61d2c8245828 100644 --- a/drivers/infiniband/hw/efa/efa_verbs.c +++ b/drivers/infiniband/hw/efa/efa_verbs.c @@ -1152,9 +1152,9 @@ int efa_create_user_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, if (attr->flags) return -EOPNOTSUPP; - if (entries < 1 || entries > dev->dev_attr.max_cq_depth) { + if (entries > dev->dev_attr.max_cq_depth) { ibdev_dbg(ibdev, - "cq: requested entries[%u] non-positive or greater than max[%u]\n", + "cq: requested entries[%u] greater than max[%u]\n", entries, dev->dev_attr.max_cq_depth); err = -EINVAL; goto err_out; |
