summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJacob Moroni <jmoroni@google.com>2026-06-03 00:44:22 +0300
committerJason Gunthorpe <jgg@nvidia.com>2026-06-05 20:09:29 +0300
commited8621be482bf18dcd217aa024e95758bf9d28f2 (patch)
tree017cbd815b396f6216138ed003bbe5364b43b407 /include/linux
parent7d29f7e9dbd844cae4d3e559cf78324b9642fd6b (diff)
downloadlinux-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/linux')
0 files changed, 0 insertions, 0 deletions