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 E4FE5A328D for ; Tue, 22 Oct 2019 09:13:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B70925B32; Tue, 22 Oct 2019 09:13:09 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 333C34C8B; Tue, 22 Oct 2019 09:13:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 00:13:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="397582373" Received: from dpdk6.bj.intel.com ([172.16.182.200]) by fmsmga005.fm.intel.com with ESMTP; 22 Oct 2019 00:13:03 -0700 From: Wei Zhao To: dev@dpdk.org Cc: stable@dpdk.org, xiaolong.ye@intel.com, Wei Zhao Date: Tue, 22 Oct 2019 14:39:26 +0800 Message-Id: <1571726366-34952-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.7.5 Subject: [dpdk-stable] [PATCH] 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