Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/irdma/irdma_uda.c
/*- | /*- | ||||
* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB | * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB | ||||
* | * | ||||
* Copyright (c) 2016 - 2021 Intel Corporation | * Copyright (c) 2016 - 2022 Intel Corporation | ||||
* | * | ||||
* This software is available to you under a choice of one of two | * This software is available to you under a choice of one of two | ||||
* licenses. You may choose to be licensed under the terms of the GNU | * licenses. You may choose to be licensed under the terms of the GNU | ||||
Context not available. | |||||
* irdma_create_mg_ctx() - create a mcg context | * irdma_create_mg_ctx() - create a mcg context | ||||
* @info: multicast group context info | * @info: multicast group context info | ||||
*/ | */ | ||||
static int | static void | ||||
irdma_create_mg_ctx(struct irdma_mcast_grp_info *info) | irdma_create_mg_ctx(struct irdma_mcast_grp_info *info) | ||||
{ | { | ||||
struct irdma_mcast_grp_ctx_entry_info *entry_info = NULL; | struct irdma_mcast_grp_ctx_entry_info *entry_info = NULL; | ||||
Context not available. | |||||
ctx_idx++; | ctx_idx++; | ||||
} | } | ||||
} | } | ||||
return 0; | |||||
} | } | ||||
/** | /** | ||||
Context not available. | |||||
u64 scratch) | u64 scratch) | ||||
{ | { | ||||
__le64 *wqe; | __le64 *wqe; | ||||
int ret_code = 0; | |||||
if (info->mg_id >= IRDMA_UDA_MAX_FSI_MGS) { | if (info->mg_id >= IRDMA_UDA_MAX_FSI_MGS) { | ||||
irdma_debug(cqp->dev, IRDMA_DEBUG_WQE, "mg_id out of range\n"); | irdma_debug(cqp->dev, IRDMA_DEBUG_WQE, "mg_id out of range\n"); | ||||
Context not available. | |||||
return -ENOSPC; | return -ENOSPC; | ||||
} | } | ||||
ret_code = irdma_create_mg_ctx(info); | irdma_create_mg_ctx(info); | ||||
if (ret_code) | |||||
return ret_code; | |||||
set_64bit_val(wqe, IRDMA_BYTE_32, info->dma_mem_mc.pa); | set_64bit_val(wqe, IRDMA_BYTE_32, info->dma_mem_mc.pa); | ||||
set_64bit_val(wqe, IRDMA_BYTE_16, | set_64bit_val(wqe, IRDMA_BYTE_16, | ||||
Context not available. |