Skip to content

Commit

Permalink
net/bnxt: remove unnecessary code
Browse files Browse the repository at this point in the history
[ upstream commit b93fe4d ]

Also removed a log message which does not convey any
useful information.

Fixes: d24610f ("net/bnxt: allow flow creation when RSS is enabled")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Kalesh AP authored and cpaelzer committed Aug 9, 2021
1 parent efb741b commit e3f51b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/bnxt/bnxt_flow.c
Expand Up @@ -950,16 +950,14 @@ static int bnxt_vnic_prep(struct bnxt *bp, struct bnxt_vnic_info *vnic,

/* RSS context is required only when there is more than one RSS ring */
if (vnic->rx_queue_cnt > 1) {
rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic, 0 /* ctx_idx 0 */);
rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic, 0);
if (rc) {
rte_flow_error_set(error, -rc,
RTE_FLOW_ERROR_TYPE_ACTION,
act,
"Failed to alloc VNIC context");
goto ret;
}
} else {
PMD_DRV_LOG(DEBUG, "No RSS context required\n");
}

if (rx_offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
Expand Down

0 comments on commit e3f51b8

Please sign in to comment.