From db6730a809c44abc4c2760d777ddc732b6f69373 Mon Sep 17 00:00:00 2001 From: Simei Su Date: Mon, 11 Nov 2019 15:55:27 +0800 Subject: [PATCH] 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 --- drivers/net/ice/ice_hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.20.1