[v2] net/ice: fix queue index for switch filter

Message ID 1571728523-36705-1-git-send-email-wei.zhao1@intel.com (mailing list archive)
State Superseded, archived
Headers
Series [v2] net/ice: fix queue index for switch filter |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Zhao1, Wei Oct. 22, 2019, 7:15 a.m. UTC
  When calculate queue index for queue action in
switch filter, vsi base queue should be included.

Cc: stable@dpdk.org
Fixes: 57c4f2693588 ("net/ice: enable switch filter")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
---
 drivers/net/ice/ice_switch_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c
index 6c96b6f..e1eaf91 100644
--- a/drivers/net/ice/ice_switch_filter.c
+++ b/drivers/net/ice/ice_switch_filter.c
@@ -926,7 +926,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;