Skip to content

Commit 72e065b

Browse files
committed
providers/efa: Rename alloc_ucontext comp_mask to supported_caps
Rename the field and related constants to align with kernel changes. This avoids confusion with the standard comp_mask semantics and makes it easier to add a proper comp_mask later if needed. Reviewed-by: Tom Sela <tomsela@amazon.com> Reviewed-by: Yonatan Nachum <ynachum@amazon.com> Signed-off-by: Michael Margolin <mrgolin@amazon.com>
1 parent e383721 commit 72e065b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

providers/efa/efa.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
22
/*
3-
* Copyright 2019-2025 Amazon.com, Inc. or its affiliates. All rights reserved.
3+
* Copyright 2019-2026 Amazon.com, Inc. or its affiliates. All rights reserved.
44
*/
55

66
#include <stdio.h>
@@ -64,8 +64,8 @@ static struct verbs_context *efa_alloc_context(struct ibv_device *vdev,
6464
struct efa_alloc_ucontext cmd = {};
6565
struct efa_context *ctx;
6666

67-
cmd.comp_mask |= EFA_ALLOC_UCONTEXT_CMD_COMP_TX_BATCH;
68-
cmd.comp_mask |= EFA_ALLOC_UCONTEXT_CMD_COMP_MIN_SQ_WR;
67+
cmd.supported_caps |= EFA_ALLOC_UCONTEXT_CMD_SUPP_CAPS_TX_BATCH;
68+
cmd.supported_caps |= EFA_ALLOC_UCONTEXT_CMD_SUPP_CAPS_MIN_SQ_WR;
6969

7070
ctx = verbs_init_and_alloc_context(vdev, cmd_fd, ctx, ibvctx,
7171
RDMA_DRIVER_EFA);

0 commit comments

Comments
 (0)