net/bnxt: fix flow RSS failure handling
With commit 239695f754cb ("net/bnxt: enhance RSS action support"), when bnxt_hwrm_vnic_rss_cfg() call fails, driver was not setting flow error using "rte_flow_error_set". Fixes: 239695f754cb ("net/bnxt: enhance RSS action support") Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
This commit is contained in:
parent
43e7d2a30d
commit
26ba9e7b91
@ -1226,6 +1226,15 @@ bnxt_vnic_rss_cfg_update(struct bnxt *bp,
|
||||
|
||||
skip_rss_table:
|
||||
rc = bnxt_hwrm_vnic_rss_cfg(bp, vnic);
|
||||
if (rc != 0) {
|
||||
rte_flow_error_set(error,
|
||||
-rc,
|
||||
RTE_FLOW_ERROR_TYPE_ACTION,
|
||||
act,
|
||||
"VNIC RSS configure failed");
|
||||
rc = -rte_errno;
|
||||
goto ret;
|
||||
}
|
||||
ret:
|
||||
return rc;
|
||||
}
|
||||
@ -1515,7 +1524,7 @@ skip_vnic_alloc:
|
||||
/* RSS config update requested */
|
||||
rc = bnxt_vnic_rss_cfg_update(bp, vnic, act, error);
|
||||
if (rc != 0)
|
||||
return -rte_errno;
|
||||
goto ret;
|
||||
|
||||
filter->dst_id = vnic->fw_vnic_id;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user