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 90039A04FD; Wed, 15 Jan 2020 01:13:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E4D291C01B; Wed, 15 Jan 2020 01:13:46 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2D08C1C00E for ; Wed, 15 Jan 2020 01:13:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2020 16:13:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,320,1574150400"; d="scan'208";a="397685756" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 14 Jan 2020 16:13:43 -0800 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Jan 2020 16:13:42 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 Jan 2020 16:13:42 -0800 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.28]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.39]) with mapi id 14.03.0439.000; Wed, 15 Jan 2020 08:13:40 +0800 From: "Zhang, Qi Z" To: "Iremonger, Bernard" , "dev@dpdk.org" , "Xing, Beilei" , "Doherty, Declan" CC: "Ananyev, Konstantin" , "Byrne, Stephen1" , "Zhang, Helin" Thread-Topic: [PATCH v5 12/14] librte_ethdev: add ESP and AH flow types to RSS Thread-Index: AQHVyuJikcT2cPleS0qw5Bes0CyPBqfq2wKw Date: Wed, 15 Jan 2020 00:13:39 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153E0501E@SHSMSX105.ccr.corp.intel.com> References: <1578669630-23866-1-git-send-email-bernard.iremonger@intel.com> <1579010128-15794-13-git-send-email-bernard.iremonger@intel.com> In-Reply-To: <1579010128-15794-13-git-send-email-bernard.iremonger@intel.com> 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 v5 12/14] librte_ethdev: add ESP and AH flow types to RSS 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: Iremonger, Bernard > Sent: Tuesday, January 14, 2020 9:55 PM > To: dev@dpdk.org; Xing, Beilei ; Zhang, Qi Z > ; Doherty, Declan > Cc: Ananyev, Konstantin ; Byrne, Stephen1 > ; Zhang, Helin ; > Iremonger, Bernard > Subject: [PATCH v5 12/14] librte_ethdev: add ESP and AH flow types to RSS >=20 > Add macros for the following protocols in the DDP esp-ah profile: > ESP > AH >=20 > Add the following RSS macro for IPsec: > ETH_RSS_IPSEC >=20 > Signed-off-by: Bernard Iremonger > --- > lib/librte_ethdev/rte_ethdev.h | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethde= v.h > index 18a9def..208ec90 100644 > --- a/lib/librte_ethdev/rte_ethdev.h > +++ b/lib/librte_ethdev/rte_ethdev.h > @@ -484,7 +484,9 @@ struct rte_eth_rss_conf { > #define RTE_ETH_FLOW_NVGRE 21 /**< NVGRE protocol > based flow */ > #define RTE_ETH_FLOW_VXLAN_GPE 22 /**< VXLAN-GPE > protocol based flow */ > #define RTE_ETH_FLOW_GTPU 23 /**< GTPU protocol > based flow */ > -#define RTE_ETH_FLOW_MAX 24 > +#define RTE_ETH_FLOW_AH 24 /**< AH protocol based > flow */ > +#define RTE_ETH_FLOW_ESP 25 /**< ESP protocol based > flow */ > +#define RTE_ETH_FLOW_MAX 26 >=20 > /* > * Below macros are defined for RSS offload types, they can be used to @= @ > -511,6 +513,12 @@ struct rte_eth_rss_conf { > #define ETH_RSS_GENEVE (1ULL << 20) > #define ETH_RSS_NVGRE (1ULL << 21) > #define ETH_RSS_GTPU (1ULL << 23) > +#define ETH_RSS_AH (1ULL << 24) > +#define ETH_RSS_ESP (1ULL << 25) > + > + > + > + Empty lines need to be removed Reviewed-by: Qi Zhang >=20 > /* > * We use the following macros to combine with above ETH_RSS_* for @@ > -571,6 +579,10 @@ rte_eth_rss_hf_refine(uint64_t rss_hf) > ETH_RSS_NONFRAG_IPV4_SCTP | \ > ETH_RSS_NONFRAG_IPV6_SCTP) >=20 > +#define ETH_RSS_IPSEC ( \ > + ETH_RSS_AH | \ > + ETH_RSS_ESP) > + > #define ETH_RSS_TUNNEL ( \ > ETH_RSS_VXLAN | \ > ETH_RSS_GENEVE | \ > -- > 2.7.4