diff options
| author | Jacob Moroni <jmoroni@google.com> | 2026-06-03 00:44:22 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-05 20:09:29 +0300 |
| commit | ed8621be482bf18dcd217aa024e95758bf9d28f2 (patch) | |
| tree | 017cbd815b396f6216138ed003bbe5364b43b407 /include | |
| parent | 7d29f7e9dbd844cae4d3e559cf78324b9642fd6b (diff) | |
| download | linux-ed8621be482bf18dcd217aa024e95758bf9d28f2.tar.xz | |
RDMA/irdma: Remove redundant legacy_mode checks
The driver has the following invariants:
1. legacy_mode is only allowed on GEN_1 hardware (enforced
in irdma_alloc_ucontext).
2. GEN_1 hardware does not set IRDMA_FEATURE_CQ_RESIZE or
IRDMA_FEATURE_RTS_AE. These feature flags are only set
for GEN_2 and GEN_3 hardware.
Therefore, legacy_mode is always false if IRDMA_FEATURE_CQ_RESIZE
or IRDMA_FEATURE_RTS_AE is set, so remove the redundant checks.
Link: https://patch.msgid.link/r/20260602214423.1315105-1-jmoroni@google.com
Signed-off-by: Jacob Moroni <jmoroni@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
