mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
i40iw: Correct variable names
Fix incorrect naming of status code and struct. Use inline instead of immediate. Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com> Signed-off-by: Henry Orosco <henry.orosco@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
f67ace2d88
commit
8129331f01
2 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ enum i40iw_status_code {
|
||||||
I40IW_ERR_INVALID_ALIGNMENT = -23,
|
I40IW_ERR_INVALID_ALIGNMENT = -23,
|
||||||
I40IW_ERR_FLUSHED_QUEUE = -24,
|
I40IW_ERR_FLUSHED_QUEUE = -24,
|
||||||
I40IW_ERR_INVALID_PUSH_PAGE_INDEX = -25,
|
I40IW_ERR_INVALID_PUSH_PAGE_INDEX = -25,
|
||||||
I40IW_ERR_INVALID_IMM_DATA_SIZE = -26,
|
I40IW_ERR_INVALID_INLINE_DATA_SIZE = -26,
|
||||||
I40IW_ERR_TIMEOUT = -27,
|
I40IW_ERR_TIMEOUT = -27,
|
||||||
I40IW_ERR_OPCODE_MISMATCH = -28,
|
I40IW_ERR_OPCODE_MISMATCH = -28,
|
||||||
I40IW_ERR_CQP_COMPL_ERROR = -29,
|
I40IW_ERR_CQP_COMPL_ERROR = -29,
|
||||||
|
|
|
@ -435,7 +435,7 @@ static enum i40iw_status_code i40iw_inline_rdma_write(struct i40iw_qp_uk *qp,
|
||||||
|
|
||||||
op_info = &info->op.inline_rdma_write;
|
op_info = &info->op.inline_rdma_write;
|
||||||
if (op_info->len > I40IW_MAX_INLINE_DATA_SIZE)
|
if (op_info->len > I40IW_MAX_INLINE_DATA_SIZE)
|
||||||
return I40IW_ERR_INVALID_IMM_DATA_SIZE;
|
return I40IW_ERR_INVALID_INLINE_DATA_SIZE;
|
||||||
|
|
||||||
ret_code = i40iw_inline_data_size_to_wqesize(op_info->len, &wqe_size);
|
ret_code = i40iw_inline_data_size_to_wqesize(op_info->len, &wqe_size);
|
||||||
if (ret_code)
|
if (ret_code)
|
||||||
|
@ -511,7 +511,7 @@ static enum i40iw_status_code i40iw_inline_send(struct i40iw_qp_uk *qp,
|
||||||
|
|
||||||
op_info = &info->op.inline_send;
|
op_info = &info->op.inline_send;
|
||||||
if (op_info->len > I40IW_MAX_INLINE_DATA_SIZE)
|
if (op_info->len > I40IW_MAX_INLINE_DATA_SIZE)
|
||||||
return I40IW_ERR_INVALID_IMM_DATA_SIZE;
|
return I40IW_ERR_INVALID_INLINE_DATA_SIZE;
|
||||||
|
|
||||||
ret_code = i40iw_inline_data_size_to_wqesize(op_info->len, &wqe_size);
|
ret_code = i40iw_inline_data_size_to_wqesize(op_info->len, &wqe_size);
|
||||||
if (ret_code)
|
if (ret_code)
|
||||||
|
@ -1187,7 +1187,7 @@ enum i40iw_status_code i40iw_inline_data_size_to_wqesize(u32 data_size,
|
||||||
u8 *wqe_size)
|
u8 *wqe_size)
|
||||||
{
|
{
|
||||||
if (data_size > I40IW_MAX_INLINE_DATA_SIZE)
|
if (data_size > I40IW_MAX_INLINE_DATA_SIZE)
|
||||||
return I40IW_ERR_INVALID_IMM_DATA_SIZE;
|
return I40IW_ERR_INVALID_INLINE_DATA_SIZE;
|
||||||
|
|
||||||
if (data_size <= 16)
|
if (data_size <= 16)
|
||||||
*wqe_size = I40IW_QP_WQE_MIN_SIZE;
|
*wqe_size = I40IW_QP_WQE_MIN_SIZE;
|
||||||
|
|
Loading…
Reference in a new issue