From patchwork Mon Aug 2 07:25:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjun Wu X-Patchwork-Id: 96510 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55927A0C41; Mon, 2 Aug 2021 09:44:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0D2040143; Mon, 2 Aug 2021 09:44:09 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id A0CE240140 for ; Mon, 2 Aug 2021 09:44:07 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10063"; a="200608247" X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="200608247" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 00:44:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="501674418" Received: from wuwenjun.sh.intel.com ([10.67.110.197]) by fmsmga004.fm.intel.com with ESMTP; 02 Aug 2021 00:44:03 -0700 From: Wenjun Wu To: dev@dpdk.org, qiming.yang@intel.com, qi.z.zhang@intel.com, yuying.zhang@intel.com Cc: Wenjun Wu Date: Mon, 2 Aug 2021 15:25:17 +0800 Message-Id: <20210802072517.942854-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1] net/ice: fix the reversed priority of DCF switch rule X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes the reversed priority of DCF switch rule. Priority 0 and 1 are supported, and priority 0 should be the highest priority. Fixes: 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter") Signed-off-by: Wenjun Wu Acked-by: Qi Zhang --- 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 eeed386c63..f222cb9cb0 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -1572,7 +1572,7 @@ ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad, rule_info->sw_act.src = rule_info->sw_act.vsi_handle; rule_info->sw_act.flag = ICE_FLTR_RX; rule_info->rx = 1; - rule_info->priority = priority + 5; + rule_info->priority = 6 - priority; return 0; }