From: Simei Su Date: Mon, 11 Nov 2019 07:55:27 +0000 (+0800) Subject: net/ice: fix RSS rule destroy X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=db6730a809c44abc4c2760d777ddc732b6f69373;p=dpdk.git net/ice: fix RSS rule destroy This patch changes RSS rule destroy interface from ice_rem_vsi_rss_cfg() to ice_rem_rss_cfg(). To coordinate with input set change, it should destroy a specific flow rule but not all vsi cfg. Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Signed-off-by: Simei Su Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index 8dc3146a20..57e7d553d6 100644 --- a/drivers/net/ice/ice_hash.c +++ b/drivers/net/ice/ice_hash.c @@ -530,7 +530,8 @@ ice_hash_destroy(struct ice_adapter *ad, (1 << VSIQF_HASH_CTL_HASH_SCHEME_S); ICE_WRITE_REG(hw, VSIQF_HASH_CTL(vsi->vsi_id), reg); } else { - ret = ice_rem_vsi_rss_cfg(hw, vsi->idx); + ret = ice_rem_rss_cfg(hw, vsi->idx, + filter_ptr->hashed_flds, filter_ptr->packet_hdr); if (ret) { rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE, NULL,