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 8243BA0350; Tue, 30 Jun 2020 16:13:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8DCFD1BEA9; Tue, 30 Jun 2020 16:13:37 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 73B461BE99 for ; Tue, 30 Jun 2020 16:13:35 +0200 (CEST) IronPort-SDR: lr3LW1XYMCshPvzpUB6HfZQ/GK8rvMoeo4OD8+aPO0zbaWZHV/a9cPw6/8jLNjNXbdbCD3xHQ/ RiNBaLNmTbwg== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="207753654" X-IronPort-AV: E=Sophos;i="5.75,297,1589266800"; d="scan'208";a="207753654" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2020 07:13:34 -0700 IronPort-SDR: w/eSil2SGW6UTTKCSCMiJTzWuMQSObv9ZLMAP9AOk3NQT2HbKTO1lmZvbmSBK2jMpjJv8ZDN7H T6BWeqLCwXIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,297,1589266800"; d="scan'208";a="313412776" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga002.fm.intel.com with ESMTP; 30 Jun 2020 07:13:34 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 30 Jun 2020 07:13:33 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 30 Jun 2020 07:13:33 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 30 Jun 2020 07:06:20 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.89]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.185]) with mapi id 14.03.0439.000; Tue, 30 Jun 2020 22:06:17 +0800 From: "Zhang, Qi Z" To: "Yang, Qiming" , "Xu, Ting" , "dev@dpdk.org" Thread-Topic: [PATCH v2] net/ice: support original VF action for DCF Thread-Index: AQHWP5ZLyKlHgTIykE6GdAVM5Ct246jusyqAgAKcusA= Date: Tue, 30 Jun 2020 14:06:16 +0000 Message-ID: <039ED4275CED7440929022BC67E706115484923F@SHSMSX103.ccr.corp.intel.com> References: <20200606132356.35278-1-ting.xu@intel.com> <20200611101451.82907-1-ting.xu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/ice: support original VF action for DCF X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Yang, Qiming > Sent: Monday, June 29, 2020 2:12 PM > To: Xu, Ting ; dev@dpdk.org > Cc: Zhang, Qi Z ; Ye, Xiaolong > Subject: RE: [PATCH v2] net/ice: support original VF action for DCF >=20 > > -----Original Message----- > > From: Xu, Ting > > Sent: Thursday, June 11, 2020 18:15 > > To: dev@dpdk.org > > Cc: Yang, Qiming ; Zhang, Qi Z > > ; Ye, Xiaolong > > Subject: [PATCH v2] net/ice: support original VF action for DCF > > > > From: Qi Zhang > > > > Add support to allow the original VF actions in DCF. > > > > Signed-off-by: Qi Zhang > > Signed-off-by: Ting Xu > > > > --- > > v1->v2: correct commit log. > > --- > > drivers/net/ice/ice_switch_filter.c | 13 ++++++++++--- > > 1 file changed, 10 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/net/ice/ice_switch_filter.c > > b/drivers/net/ice/ice_switch_filter.c > > index 20e8187d3..33327e905 100644 > > --- a/drivers/net/ice/ice_switch_filter.c > > +++ b/drivers/net/ice/ice_switch_filter.c > > @@ -23,6 +23,7 @@ > > #include "ice_logs.h" > > #include "ice_ethdev.h" > > #include "ice_generic_flow.h" > > +#include "ice_dcf_ethdev.h" > > > > > > #define MAX_QGRP_NUM_TYPE 7 > > @@ -1240,7 +1241,8 @@ ice_switch_inset_get(const struct > rte_flow_item > > pattern[], } > > > > static int > > -ice_switch_parse_dcf_action(const struct rte_flow_action *actions, > > +ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad, > > + const struct rte_flow_action *actions, > > struct rte_flow_error *error, > > struct ice_adv_rule_info *rule_info) { @@ -1255,7 > > +1257,11 @@ ice_switch_parse_dcf_action(const struct rte_flow_action > > *actions, > > case RTE_FLOW_ACTION_TYPE_VF: > > rule_info->sw_act.fltr_act =3D ICE_FWD_TO_VSI; act_vf =3D action->con= f; > > -rule_info->sw_act.vsi_handle =3D act_vf->id; > > +if (act_vf->original) > > +rule_info->sw_act.vsi_handle =3D > > +ad->real_hw.avf.bus.func; > > +else > > +rule_info->sw_act.vsi_handle =3D act_vf->id; > > break; > > default: > > rte_flow_error_set(error, > > @@ -1515,7 +1521,8 @@ ice_switch_parse_pattern_action(struct > > ice_adapter *ad, > > } > > > > if (ad->hw.dcf_enabled) > > -ret =3D ice_switch_parse_dcf_action(actions, error, &rule_info); > > +ret =3D ice_switch_parse_dcf_action((void *)ad, actions, error, > > + &rule_info); > > else > > ret =3D ice_switch_parse_action(pf, actions, error, &rule_info); > > > > -- > > 2.17.1 >=20 > Acked-by: Qiming Yang Applied to dpdk-next-net-intel. Thanks Qi