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 B0177A0C54; Fri, 3 Sep 2021 14:50:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E8AA410DD; Fri, 3 Sep 2021 14:50:38 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 0363E410D8 for ; Fri, 3 Sep 2021 14:50:36 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10095"; a="283118953" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="283118953" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 05:50:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="429645707" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga003.jf.intel.com with ESMTP; 03 Sep 2021 05:50:36 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 05:50:35 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 05:50:35 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 3 Sep 2021 05:50:35 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.104) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Fri, 3 Sep 2021 05:50:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eiaPe+07BJFJx3Spukz1k130w5UnuTVjMw38tQUNiZqEWsLJyAxpdLKG0Xbtat6cCP9CxAFKhoBAyIYNwykeLp3gm+dPM1tJQBKNyvKYEV1CweuS8NnY9EBKCz5/mxZFx1rKQeRzK5UEVCwchJw6Sa5RqnXcyYolp/VqQmgagLplc5n1p5NE5ePLrESq+a2bTXeJhNPBxW9TUc7PCrFZOP7UY2T+FTTA+4yyHA69mLE9konxCerEZtyPzyiDio6nX8CupjtR0DYpvQQMo7WsVBcX7lhLRsGAidlf4B3K603/97b+duT9o6iqCO/idUnKYzCODkygp6SjVzWNveqffw== 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; bh=1AE4kVTo+7qYk9q4wJ89wvRI0i8ZQNkEPFSiYx1H5/8=; b=L9Ag3rPAqAyXHZncfCK6TsVUvConogFO+OcITqqKwqE1F8J5c8UeXF0p0MFWbhqeZyRXPQFGNnbPIoxlB01xfvez0D4+R+l+AkgaIbG6b+JJkVhmyFM2vvat3XusUci/r3YZJBnjcL6t6LnF1DqM8jwF+20eFnrcruIUhibHuKcfvn5h+ygYmvsgnIvw39ftpj/HUaAAnCg0PtU15dz8j+OsqkVk4jT1kN550zB26Z7lmRiP98RLlr7j9/7XUIdeS9vLwdUU6Ztw8mEJMeTWU6mHSKEXcug0S8ihbHOQIUWUIbMiq0nb5uAArkfV6T3R1wX+wkvAeT5eu1yPAuyENA== 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=1AE4kVTo+7qYk9q4wJ89wvRI0i8ZQNkEPFSiYx1H5/8=; b=dnT+qJIbf4qCqyS8zRycxfcu9h80gWxX7IBh5pSeT/CTtAqDn+Kl9wIGNO+LE6/YVfn+MsdWMd/bzi4aSRqwCsxF+/Tlrq0Zr20yYeKpDNiL1xRp4zR+jMCYDGMRUnrn2Gt4MltRp7keX+h2lWIYal753uOoN934qmHuNIMcgFQ= Received: from BL0PR11MB3043.namprd11.prod.outlook.com (2603:10b6:208:33::19) by BL0PR11MB2945.namprd11.prod.outlook.com (2603:10b6:208:32::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Fri, 3 Sep 2021 12:50:31 +0000 Received: from BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::3ca9:5da5:8b6e:ad0e]) by BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::3ca9:5da5:8b6e:ad0e%5]) with mapi id 15.20.4478.020; Fri, 3 Sep 2021 12:50:31 +0000 From: "Zhang, Roy Fan" To: "Nicolau, Radu" , Akhil Goyal , "Doherty, Declan" CC: "dev@dpdk.org" , "mdr@ashroe.eu" , "Ananyev, Konstantin" , "Medvedkin, Vladimir" , "Richardson, Bruce" , "hemant.agrawal@nxp.com" , "anoobj@marvell.com" , "Sinha, Abhijit" , "Buckley, Daniel M" , "marchana@marvell.com" , "ktejasree@marvell.com" , "matan@nvidia.com" Thread-Topic: [PATCH v4 01/10] security: add support for TSO on IPsec session Thread-Index: AQHXoLdldF1NHE6Ba0ipi5GqiX/IbauSQxQA Date: Fri, 3 Sep 2021 12:50:31 +0000 Message-ID: References: <20210713133542.3550525-1-radu.nicolau@intel.com> <20210903112626.304692-1-radu.nicolau@intel.com> <20210903112626.304692-2-radu.nicolau@intel.com> In-Reply-To: <20210903112626.304692-2-radu.nicolau@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.0.76 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fbe611f9-e2cb-4fb8-c39e-08d96ed96a40 x-ms-traffictypediagnostic: BL0PR11MB2945: 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:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: c+bn2A3JKG/Ztc5KoLkQb2WKKN87k9Boi3nJNF19AMiWESS6Q0y7Fcnkgo3M5UasjynZ6Lx0c3iwYF4QY3ur3L4YLzgOeMM+fzOOMB10M0vd2JNb7wE06SQ0QlrmBFAoxZS8MnLerf48VJarmTJSGD8Xfbml0G4GO7nL2FfCJNyhD5Dw0E8ssvUI7CxXrDV9vr0fKXxTw5GBkAch3XHIBJr8Lpz1fZrjTg6+HwkVD6/amDpA26Zos2Cvf5N2rILaukLHBzO3m2/w6v+c6F1cGgl4EEc5Pq2IGtNh/dGR2Y5RfvbyOV3bTec7PNa5ChhjoBiAKqIlsdxf1mloQK9XAQx5m2FphKLZDnZMx17HnN3mrAtGtfah1h8UqwIYHag1blRL8/jw7ePNxAmdypYZbNfJXr/A6AdAyowC1KN5UcOLb5jQp8X41k4za77JPE1gC5HzT6OobLNYFiPqrDefWP9VqVU8hKeTrWIT4vT0GEmoFQxNe3a2j4hma2xm0OZ3BrrO0IXSf45OdWwTcOr6M3B1L3sDcaAS5VVo/oYzY6VDAR+wuzB/0SBkTHoHxbtvEq9n+qWx5f/DfDbOaX6stfTlwBCvKKTtMhOpO6dW5xgLWnt63xh5CM/tXEjjhGJ/pIhGj7UCRVxHxrBZ0jXWwL6JeW20APEBEU/x18gTFfqfc2KvnY9ZucSGxD3cDZH/ZmwlJx1kjEXDXVTKdx+sVQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3043.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(396003)(136003)(39860400002)(366004)(6636002)(4326008)(186003)(7696005)(76116006)(38100700002)(66476007)(66946007)(55016002)(8676002)(5660300002)(54906003)(52536014)(122000001)(110136005)(64756008)(66556008)(316002)(71200400001)(9686003)(66446008)(86362001)(33656002)(15650500001)(38070700005)(2906002)(83380400001)(53546011)(478600001)(8936002)(26005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?quAucKqvywA4DR2GeD4HyitqdM5fkyvbjM1xtX0B+2rgqpSqRxn/VW1t?= =?Windows-1252?Q?YtuOXH+zig/gsEc5FLreJkH4nBQ6ZnvGwtp4oN+uC3XqjO4/XtZjUq5J?= =?Windows-1252?Q?xZNww0OF8agInqg4nl7W8MNhmkkO1T2BPBapVxAdho2/sr53QOV9jN6B?= =?Windows-1252?Q?1M+uW4m6qYvzIUXjMVhbW19Q6KDsE5M/vOEsDgP4Aci2YVPio0aiAm3V?= =?Windows-1252?Q?YAgfVWizY+slYaaBTsYNJgw+T2gx6/QAGjlSMqh1RpbitwxF7k2VUpTS?= =?Windows-1252?Q?IuPijVYdVpTrLFhIVPLVfH056790/uAwvvXIlQ6lcRq8PSK0VhQ/9hxL?= =?Windows-1252?Q?JN7tlbuHzBaDTVNIfQMsqDddcesk+Yo52Ca/VpH7BYA8RQFDACSAf6Ga?= =?Windows-1252?Q?MCfpn9rAMoplk60/5H1ppMLRh88mNgZbZzSeA7g5qzCUGuSv9Ye5igew?= =?Windows-1252?Q?qSnYSkDV7SACySmNMZdXQwZycLyrzMNy02RqnLWO0xIVEEbgYWTXiQyO?= =?Windows-1252?Q?PMgCYtfBQndy1e/euouFiKbB5bfpHh7lESmskVLAC4bISqar+8k22vWg?= =?Windows-1252?Q?EkttkiHgnCqivD5yO7nZ6C0QGbC68cY9eyrz5gEerRw5u90gpHrYOSHe?= =?Windows-1252?Q?l9pdH7IAs6mrJlWrsWGJolm0DdrwQ0CLjtRSnofrP0nuPdpre7TLI1sN?= =?Windows-1252?Q?sLUSFzte+dzgSppSca6CvAjoFH9Hd67xWY7NUa28Yr5IpPhVzsrU37fT?= =?Windows-1252?Q?wocPMu16nsW9QcDnZ0Py5/6mRS8XSPTmbUBvEb3X4UwWQzfvIzlgnly6?= =?Windows-1252?Q?4SI8DEnNcHs26kLzhUfX3DYGRGCJZ+GT8yyX/yi3nnn/fmECLzUqPjOi?= =?Windows-1252?Q?twVtPWpNN55o/tc7oqJApjtLxPfwKw7PDsJXOeRsFRmjEEMMJ0lPiGqm?= =?Windows-1252?Q?/BflDbz1GZVEcTNUNqO9z83d4nPY5CIZcLBFctDYgdImI8T+aVlOxXyM?= =?Windows-1252?Q?TMAlx8OO5bBT670dqq3KEVCLIrMDe3WLfcI56OR2pIefn+j9sxsq/A2c?= =?Windows-1252?Q?txzhcmnA1qf5HRH/9Y1Ah0tSNnmzd0ujUMyB8UAa/OsMoDjky3ClVMcC?= =?Windows-1252?Q?PtWPpV/MeHuiGRX+zV/paMiq4YUOOw3JmeEPDFIaXEoLspvZ9vwvAMJm?= =?Windows-1252?Q?RiM2zBO1+oXHm9+RIwceduF/x+EXUdNAFjxLCYsSGzcnGRGkGqgqxknP?= =?Windows-1252?Q?h1k5SeihXE6BmbqLyEiA9X/yoBHH7diDSSVYvryaFUU/KrHVVwRy5mcT?= =?Windows-1252?Q?bMttfBELhtzvm5WeCBI9wqbjpPuyK/fww3th1kRHJh8pP0kf2JIWT1/W?= =?Windows-1252?Q?LdtVJ62mfNDiW27SrJ4PdhOP5PZuL5Heso0uBdkh0mW7r6md8zblxb7C?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3043.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbe611f9-e2cb-4fb8-c39e-08d96ed96a40 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Sep 2021 12:50:31.7754 (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: ZF20hKaMGaRJvHiaHCHKMs4QljsSCezv+uNUKWxInDylsUrXcUmI8fJkxJBhN8ayCru4cBk0aootcJCT+ZVEhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB2945 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 01/10] security: add support for TSO on IPsec session 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: Nicolau, Radu > Sent: Friday, September 3, 2021 12:26 PM > To: Akhil Goyal ; Doherty, Declan > > Cc: dev@dpdk.org; mdr@ashroe.eu; Ananyev, Konstantin > ; Medvedkin, Vladimir > ; Richardson, Bruce > ; Zhang, Roy Fan ; > hemant.agrawal@nxp.com; anoobj@marvell.com; Sinha, Abhijit > ; Buckley, Daniel M = ; > marchana@marvell.com; ktejasree@marvell.com; matan@nvidia.com; > Nicolau, Radu > Subject: [PATCH v4 01/10] security: add support for TSO on IPsec session >=20 > Allow user to provision a per security session maximum segment size > (MSS) for use when Transmit Segmentation Offload (TSO) is supported. > The MSS value will be used when PKT_TX_TCP_SEG or PKT_TX_UDP_SEG > ol_flags are specified in mbuf. >=20 > Signed-off-by: Declan Doherty > Signed-off-by: Radu Nicolau > Signed-off-by: Abhijit Sinha > Signed-off-by: Daniel Martin Buckley > --- > lib/security/rte_security.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h > index 88d31de0a6..45896a77d0 100644 > --- a/lib/security/rte_security.h > +++ b/lib/security/rte_security.h > @@ -181,6 +181,19 @@ struct rte_security_ipsec_sa_options { > * * 0: Disable per session security statistics collection for this SA. > */ > uint32_t stats : 1; > + > + /** Transmit Segmentation Offload (TSO) > + * > + * * 1: Enable per session security TSO support, use MSS value > provide > + * in IPsec security session when PKT_TX_TCP_SEG or > PKT_TX_UDP_SEG > + * ol_flags are set in mbuf. > + * this SA, if supported by the driver. > + * * 0: No TSO support for offload IPsec packets. Hardware will not > + * attempt to segment packet, and packet transmission will fail if > + * larger than MTU of interface > + */ > + uint32_t tso : 1; > + > }; >=20 > /** IPSec security association direction */ > @@ -217,6 +230,8 @@ struct rte_security_ipsec_xform { > /**< Anti replay window size to enable sequence replay attack > handling. > * replay checking is disabled if the window size is 0. > */ > + uint32_t mss; > + /**< IPsec payload Maximum Segment Size */ > }; >=20 > /** > -- > 2.25.1 Acked-by: Fan Zhang