From: Qi Zhang Date: Mon, 7 Sep 2020 11:15:34 +0000 (+0800) Subject: net/ice/base: preserve default aggregator VSI information X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da598edd06c95bd55b466aa5013e88faf37ed667;p=dpdk.git net/ice/base: preserve default aggregator VSI information Added the change to keep the default aggregator VSI information. Signed-off-by: Tarun Singh Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/base/ice_sched.c b/drivers/net/ice/base/ice_sched.c index 4be449f610..16314ef18e 100644 --- a/drivers/net/ice/base/ice_sched.c +++ b/drivers/net/ice/base/ice_sched.c @@ -2852,16 +2852,7 @@ ice_sched_assoc_vsi_to_agg(struct ice_port_info *pi, u32 agg_id, if (status) break; - if (agg_id != ICE_DFLT_AGG_ID) - ice_set_bit(tc, agg_vsi_info->tc_bitmap); - else - ice_clear_bit(tc, agg_vsi_info->tc_bitmap); - } - /* If VSI moved back to default aggregator, delete agg_vsi_info. */ - if (!ice_is_any_bit_set(agg_vsi_info->tc_bitmap, - ICE_MAX_TRAFFIC_CLASS)) { - LIST_DEL(&agg_vsi_info->list_entry); - ice_free(hw, agg_vsi_info); + ice_set_bit(tc, agg_vsi_info->tc_bitmap); } return status; }