From: Santoshkumar Karanappa Rastapur Date: Thu, 18 Jul 2019 03:36:08 +0000 (+0530) Subject: net/bnxt: fix RSS disable for thor-based adapters X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ce1d4562430d484e9bfbb2f00249ad2b7a965fe7;p=dpdk.git net/bnxt: fix RSS disable for thor-based adapters In bnxt_hwrm_vnic_rss_cfg_thor, we were exiting if hash_type is 0. This was preventing RSS getting disabled. Fixing it by removing the check for hash_type while configuring RSS. Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers") Signed-off-by: Santoshkumar Karanappa Rastapur Reviewed-by: Lance Richardson Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 2e198fcae1..b412d4dc6d 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1737,9 +1737,6 @@ bnxt_hwrm_vnic_rss_cfg_thor(struct bnxt *bp, struct bnxt_vnic_info *vnic) struct hwrm_vnic_rss_cfg_input req = {.req_type = 0 }; struct hwrm_vnic_rss_cfg_output *resp = bp->hwrm_cmd_resp_addr; - if (!(vnic->rss_table && vnic->hash_type)) - return 0; - HWRM_PREP(req, VNIC_RSS_CFG, BNXT_USE_CHIMP_MB); req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); @@ -1774,6 +1771,9 @@ int bnxt_hwrm_vnic_rss_cfg(struct bnxt *bp, struct hwrm_vnic_rss_cfg_input req = {.req_type = 0 }; struct hwrm_vnic_rss_cfg_output *resp = bp->hwrm_cmd_resp_addr; + if (!vnic->rss_table) + return 0; + if (BNXT_CHIP_THOR(bp)) return bnxt_hwrm_vnic_rss_cfg_thor(bp, vnic);