From: Wei Zhao Date: Tue, 22 Oct 2019 06:39:26 +0000 (+0800) Subject: net/ice: fix queue index for switch filter X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=368f9f2f777627f367bcdc91c6541a89f006afe1;p=dpdk.git net/ice: fix queue index for switch filter When calculate queue index for queue action in switch filter, vsi base queue should be included. Fixes: 57c4f2693588 ("net/ice: enable switch filter") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Reviewed-by: Xiaolong Ye --- diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 79fb81197e..4be87c2b9a 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -925,7 +925,7 @@ ice_switch_parse_action(struct ice_pf *pf, uint16_t valid_qgrop_number[MAX_QGRP_NUM_TYPE] = { 2, 4, 8, 16, 32, 64, 128}; - base_queue = pf->base_queue; + base_queue = pf->base_queue + vsi->base_queue; for (action = actions; action->type != RTE_FLOW_ACTION_TYPE_END; action++) { action_type = action->type;