From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A004FA0C40; Fri, 16 Apr 2021 12:19:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82DBF141CBC; Fri, 16 Apr 2021 12:19:49 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 078A8141CB2 for ; Fri, 16 Apr 2021 12:19:47 +0200 (CEST) IronPort-SDR: ioTpyLJHbkyCB6lzy9sWcZJ4qDyMW/Hk0yJq8Pd+nGModWD8dT0MoEB74+kLG5oIeNHpsbz/Ka giTOtSnHDTJQ== X-IronPort-AV: E=McAfee;i="6200,9189,9955"; a="195046915" X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="195046915" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2021 03:19:46 -0700 IronPort-SDR: mZ5oXl8FxRjoBPJ4k1dC8wtNpNFf5zOx9kQyi1V8OD5mG6RkUzeO7thNqpdpgu1Z+H6uZymEET NXMUiLpknmHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="383021360" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga003.jf.intel.com with ESMTP; 16 Apr 2021 03:19:46 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 16 Apr 2021 03:19:46 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 16 Apr 2021 18:19:44 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Fri, 16 Apr 2021 18:19:44 +0800 From: "Zhang, Qi Z" To: "Zhang, Yuying" , "dev@dpdk.org" Thread-Topic: [PATCH v4] net/ice: support flow priority for DCF switch filter Thread-Index: AQHXMg7p3W7LiHyOv0yY/9/W3wisI6q278QQ Date: Fri, 16 Apr 2021 10:19:44 +0000 Message-ID: References: <20210317070243.136145-1-yuying.zhang@intel.com> <20210415153845.840636-1-yuying.zhang@intel.com> In-Reply-To: <20210415153845.840636-1-yuying.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4] net/ice: support flow priority for DCF switch filter 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" > -----Original Message----- > From: Zhang, Yuying > Sent: Thursday, April 15, 2021 11:39 PM > To: dev@dpdk.org; Zhang, Qi Z > Cc: Zhang, Yuying > Subject: [PATCH v4] net/ice: support flow priority for DCF switch filter >=20 > Support rte flow priority attribute for DCF switch filter. > When a packet is matched by two rules, the behavior of it is not defined.= This > patch supports flow priority to create different recipes for this situati= on. Only > priority 0 and 1 are supported and higher value denotes higher priority. >=20 > for example: > 1. flow create 0 priority 0 ingress pattern eth / vlan tci is 2 / vlan tc= i is 2 / end > actions vf id 2 / end 2. flow create 0 priority 1 ingress pattern eth / v= lan / vlan > / ipv4 dst is 192.168.0.1 / end actions vf id 1 / end >=20 > These two rules can be created at the same time in DCF switch filter and > priority of rule 2 is higher. Packet hits rule 2 when two conditions of r= ules are > satisfied. >=20 > Signed-off-by: Yuying Zhang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi