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 572E4A04FD; Wed, 15 Jan 2020 10:41:59 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DBD111BFB2; Wed, 15 Jan 2020 10:41:57 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D8FFE1BF6D for ; Wed, 15 Jan 2020 10:41:55 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 01:41:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,322,1574150400"; d="scan'208";a="256692737" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 15 Jan 2020 01:41:54 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 01:41:54 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 15 Jan 2020 01:41:54 -0800 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 15 Jan 2020 01:41:54 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.105) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jan 2020 01:41:54 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q1/dzv+YAf5jwBkNq+V9bcqbcPxIRAPXU8Pn6sZRGGhs+0bQUynx87tN26JEshWECp4elY1CmI1ccBRz6q6f9GPC+ZZL7VowgsASOXLiFzG5LV8PciHEBAp8fpJgYbmEfXcPz1DW+CtVy4hoWDU15/UFFw/Y1+Uk1t5XPJrVBP/itlgnEX7JYK2vD9nOksI2jBPPcr1SVHp/2IczKULItAv4WXyflLRPYO5LWTxgyidXK5hVZ4dqS2VNzGRaBF4yjvZBd7j1WKVoNgrvlRffexnLtYjtDRLi0rLpmcG9l33xpRzYGRSu72zX9trdZnHKFfYpqIdQcMb6iZeez56WGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j69KLJ1s9Xa5xLj6x43nhZa3f1+ZvUGP4oZvdp6MxPg=; b=HiPuByV0jtSPsH0arXqmjO+G27qZXsnaz09/tHnPPDdLyez7AmNsGSB8IzOdRBW3pmWqHhtV+pISb0QZVnubiuZEf1JI5bgBROP+HYV8L5GA282dQJh26NnzXQlQi7WJoUfwE7sbWUVSR+APbpE453BSr4VtsCpRz9ZrjaUEz5yV53tQ9tkN2DPEiuhHgudNWdpmusKEtjeeofJbtet4SFpkLpsLcefyUa0kiQwHz3JYCSghtGpcT84bUlTd85pO54e6IkFuJzfaXiIHGTktlZ8ux1KjRtFcCo0QtqGd9CWIw3pELRLLpU5ZgCX5WXaXpxr4NT/tyWRpcpyFHnErVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j69KLJ1s9Xa5xLj6x43nhZa3f1+ZvUGP4oZvdp6MxPg=; b=B5l/CFhi0jfAL5OGaJNk0yt//94Odz0lj7BndUvvIau9YnUoKpDST3zYKCCLieizcxVISvv2kxBu2hNlsrbssVEDIOAQda0inR0GWsmEIY4VcMoYSE/tummLxwk4mESI9ujzX+8N3qxuRY/4TDFybu9OhrgFWICrpXkE06X93Pc= Received: from DM6PR11MB3914.namprd11.prod.outlook.com (20.176.126.24) by DM6PR11MB4252.namprd11.prod.outlook.com (52.132.251.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.13; Wed, 15 Jan 2020 09:41:52 +0000 Received: from DM6PR11MB3914.namprd11.prod.outlook.com ([fe80::29bf:9a8f:7bba:dd26]) by DM6PR11MB3914.namprd11.prod.outlook.com ([fe80::29bf:9a8f:7bba:dd26%6]) with mapi id 15.20.2644.015; Wed, 15 Jan 2020 09:41:52 +0000 From: "Iremonger, Bernard" To: "Zhang, Qi Z" , "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: AQHVyuJ2m/aarB72qkq1lyoWEKUp9afq24GAgACeEPA= Date: Wed, 15 Jan 2020 09:41:52 +0000 Message-ID: References: <1578669630-23866-1-git-send-email-bernard.iremonger@intel.com> <1579010128-15794-13-git-send-email-bernard.iremonger@intel.com> <039ED4275CED7440929022BC67E7061153E0501E@SHSMSX105.ccr.corp.intel.com> In-Reply-To: <039ED4275CED7440929022BC67E7061153E0501E@SHSMSX105.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTc3NzVhZjYtNTIyNy00MzE5LTk4ODQtYjZkMTAzNWQ2YjdmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVmRNUzlEMmV6V3A1UHFqcFZ6ZVpEbVwvckJ6YmxXNStieGtIb05FY3F3SGtDclBQMkFlS0xybEJOWE5UN2RVNEMifQ== dlp-product: dlpe-windows x-ctpclassification: CTP_NT dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: spf=none (sender IP is ) smtp.mailfrom=bernard.iremonger@intel.com; x-originating-ip: [192.198.151.160] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4c0b9ce6-a562-4b3f-e89e-08d7999f26a7 x-ms-traffictypediagnostic: DM6PR11MB4252: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(376002)(366004)(346002)(39860400002)(396003)(189003)(199004)(8676002)(54906003)(81166006)(52536014)(81156014)(8936002)(6636002)(107886003)(7696005)(66446008)(186003)(66556008)(110136005)(33656002)(76116006)(66476007)(64756008)(71200400001)(26005)(66946007)(86362001)(6506007)(2906002)(55016002)(9686003)(316002)(478600001)(4326008)(5660300002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR11MB4252; H:DM6PR11MB3914.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fiI6uJp1yPYP4Zlxyh24TTeKzDyPqr6bB3D47e4XzJm5O0qI4p53qbSeStJ0GQ12VY/Mhh3QmPL//2iqxPfpX8nCwapdytliViDi42us6By17XIFWBJ8nXQHQvAO/c8RkLEqEUg7xo2bBiSQXetYJLt0oxPxDrXMF0b0zJIOOQcu/P+75W2g7A1OFnrMYeCeSnpfXWC8JwvPtsnT7CLrT7eKx6bXiPq34Cdv0GSeA15bQYoJbr0T3K0h0qeBjFmUA8M9u+PoUrDjTihKNuqLjpxPkEL69QrAd9/q3B1GbYownAgkdWHT83VAeKGop0pwFcKMa3HxtMaY5wDAvoc7bzZpXEzpFCM6j+19H6IjpW9nsnVU5Jtf+PHHD0mm3/l0/XHR3/+tzPY9lWtdpaKt9wdEfNEkG1fR3i4VTyvbgxYA8idnfl4j1YbfYM9+zNUM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4c0b9ce6-a562-4b3f-e89e-08d7999f26a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 09:41:52.2773 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fkmvvlxgBhBE6SAmiZr91rL0qBpy6mDQabepQRxbusfgjdlxwnpKAGdIVKCsyLi78uY9ZJq12ojVrqU73ZbhG+SbYgnuBhImg27zRv0vzTQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4252 X-OriginatorOrg: intel.com 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" Hi Qi, > > Subject: [PATCH v5 12/14] librte_ethdev: add ESP and AH flow types to > > RSS > > > > Add macros for the following protocols in the DDP esp-ah profile: > > ESP > > AH > > > > Add the following RSS macro for IPsec: > > ETH_RSS_IPSEC > > > > Signed-off-by: Bernard Iremonger > > --- > > lib/librte_ethdev/rte_ethdev.h | 14 +++++++++++++- > > 1 file changed, 13 insertions(+), 1 deletion(-) > > > > diff --git a/lib/librte_ethdev/rte_ethdev.h > > b/lib/librte_ethdev/rte_ethdev.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 > > > > /* > > * 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) > > + > > + > > + > > + >=20 > Empty lines need to be removed >=20 > Reviewed-by: Qi Zhang I will remove in v6 patch. Can I carry forward your Reviewed-by: ? =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) > > > > +#define ETH_RSS_IPSEC ( \ > > + ETH_RSS_AH | \ > > + ETH_RSS_ESP) > > + > > #define ETH_RSS_TUNNEL ( \ > > ETH_RSS_VXLAN | \ > > ETH_RSS_GENEVE | \ > > -- > > 2.7.4 >=20 Regards, Bernard.