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 2C9EEA328D for ; Tue, 22 Oct 2019 09:49:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1FE58493D; Tue, 22 Oct 2019 09:49:05 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 3B1FF4C74; Tue, 22 Oct 2019 09:49:04 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 00:49:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="372436313" Received: from dpdk6.bj.intel.com ([172.16.182.200]) by orsmga005.jf.intel.com with ESMTP; 22 Oct 2019 00:49:01 -0700 From: Wei Zhao To: dev@dpdk.org Cc: stable@dpdk.org, xiaolong.ye@intel.com, Wei Zhao Date: Tue, 22 Oct 2019 15:15:23 +0800 Message-Id: <1571728523-36705-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1571726366-34952-1-git-send-email-wei.zhao1@intel.com> References: <1571726366-34952-1-git-send-email-wei.zhao1@intel.com> Subject: [dpdk-stable] [PATCH v2] 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: 57c4f2693588 ("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