From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DEA62A328D for ; Tue, 22 Oct 2019 09:10:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 866F844C7; Tue, 22 Oct 2019 09:10:32 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 60B9E44C7 for ; Tue, 22 Oct 2019 09:10:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 00:10:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="203559407" Received: from dpdk6.bj.intel.com ([172.16.182.200]) by FMSMGA003.fm.intel.com with ESMTP; 22 Oct 2019 00:10:29 -0700 From: wei zhao To: qabuild@intel.com Cc: wei zhao , stable@dpdk.org Date: Tue, 22 Oct 2019 14:36:53 +0800 Message-Id: <1571726213-34633-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.5 Subject: [dpdk-stable] [DPDK] net/ice: fix queue index for switch filter X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" When calculate queue index for queue action in switch filter, vsi base queue should be included. Cc: stable@dpdk.org Fixes: 24dc00c30907 ("net/ice: enable switch filter") Signed-off-by: Wei Zhao --- drivers/net/ice/ice_switch_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.5