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 65A58A0C43; Thu, 23 Sep 2021 14:35:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E88A41260; Thu, 23 Sep 2021 14:35:09 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 8FF6841257 for ; Thu, 23 Sep 2021 14:35:07 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10115"; a="246287089" X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="246287089" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2021 05:35:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="474836490" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga007.jf.intel.com with ESMTP; 23 Sep 2021 05:35:03 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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.2242.12; Thu, 23 Sep 2021 05:35:03 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 23 Sep 2021 05:35:02 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 23 Sep 2021 05:35:02 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.48) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 23 Sep 2021 05:35:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LlGtnCoX/J/3lo2O0VdmIvVTkpnfxiYvuSLDhynJLdXmQ0bN5iokeeKDTCKGGrcWGTmSMUvOp61BCxfxir3wKiwLNQB7SztXSgPsd8lrPmGnwu/lh+h8fJXusPko+bxVXbSBU92bkZcEtkwMlqDha8D7YAWuLEDhm7sl8WLJWzJcjChJf42fvYiJWMmZNU7Q9T4WNtrKDj67ERFzqXk+0rNIpQB1IwsHa2JwCmiB7BgKiT9yWd4cyOZikv3O9KpWadUbIkIyloEQGLIX0etN/ZrA8BUmmdH8pT7ZNIpjLSC6kAObGKCUIdkHgpZ+0/+OqV5d/QM1XYZ0snWVrh5MsQ== 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=mr+UJHG+B8shFLzU9Dgp5e0WRm6bP3c0coTkBcAJCbM=; b=gMETC9OGvJfFQk1KoUEN+3oSG/Ub/2FX0IQMgn2Siy35TOD2D3VY5u1LwDfCAYBhPicj+cGmvVQEVaRkQBmj4XWtWyelagoBF2ayIyyNK5mF43QVFND/3ry/3qmi1reqdzA8Ztm/eHYbdSLs21hlRLxtKGqcGapAQVNFQASr6y29pqT2NR/pA9DPkON/JKznJECpbJ10GalGWpRopO6D0+LNYKGtvGhbUOwGu/Paj4hPQviA8SV+7FUlxs9vy56NPwDdfFjCSD8bzgfl8EsdMNxSD8wq9igzsUIEtYWYpgQ5fQvImD6c4W01Ahf2y6o63GQ/pZcgwGzzxRbssXuNRQ== 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=mr+UJHG+B8shFLzU9Dgp5e0WRm6bP3c0coTkBcAJCbM=; b=ryD1kUMdvltWqtuXm5u5RW7XlDZyoOQfE5ePeFarqQ/FtNjQ7KMJanSGFDWd91tV7E6ZeE4e32ErEPCNR788lcVeOC/8qujUD/Q6Bor9b9cCNIclx+pyO0BoYb0WMUt2qymjFX4EdOysMCEWQJHLNZFGb5JaKLlmViCGzEbwemk= Received: from DM6PR11MB4491.namprd11.prod.outlook.com (2603:10b6:5:204::19) by DM5PR11MB1387.namprd11.prod.outlook.com (2603:10b6:3:7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Thu, 23 Sep 2021 12:35:00 +0000 Received: from DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::740e:126e:c785:c8fd]) by DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::740e:126e:c785:c8fd%4]) with mapi id 15.20.4544.015; Thu, 23 Sep 2021 12:35:00 +0000 From: "Ananyev, Konstantin" To: "Nicolau, Radu" , Akhil Goyal , "Doherty, Declan" CC: "dev@dpdk.org" , "mdr@ashroe.eu" , "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" Thread-Topic: [PATCH v6 01/10] security: add support for TSO on IPsec session Thread-Index: AQHXq6YJjoOh265Z4kuqxDEKlPDmMKuxl1+Q Date: Thu, 23 Sep 2021 12:35:00 +0000 Message-ID: References: <20210713133542.3550525-1-radu.nicolau@intel.com> <20210917091747.1528262-1-radu.nicolau@intel.com> <20210917091747.1528262-2-radu.nicolau@intel.com> In-Reply-To: <20210917091747.1528262-2-radu.nicolau@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 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: 05178396-674b-4aeb-6195-08d97e8e8f5c x-ms-traffictypediagnostic: DM5PR11MB1387: 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:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kQzOzrPvQ9+pKr0p5GJ3rjyGad6FymKYGMyNvBZY949jyQpG0Yim6R+AdX7o/og4MZUbxOYOmtMlI5Vuf3xk4oe3hTTlMJ4OoXmp7PEOttJ4zD/ZuA6emeFdpXD8XLRPeyzXvRAlHM08AgXLsrMMcTb03679qTkPCoTe14Dn9Qxnsa5zbPgbC4mN0BKTHR/QUxGLde9q7FrhY/9R7lcapZ2fuzzE8UMsN7RRym5GAw5ZDRo59NvZBtXiNw8YGSViH9UPyT/aecvxVtY5JaMezHf7Q2GrJ3rhoAFyaaGnGzw2MBQrzc8Q5QHUqLRZvgk+DK6JqDv2QdUu9OWtDpbQ6vVL1xWpxFByetziCLIhX6J7jzLEGtJbgQSxl8ag2bRj2WlTsbXd3yKJ76pHjxkbPOyI6I2HKFuDq9Eh2cnTz/PY4XqjcolHCpIfcHtLsxQMMWrMFkmp04L+sv2HbvUZsI9d8TlT6MpgEKwVPEavhe8lUY7YHb5Bx7f/PQt7atLe8dADfzKW3gUrt71p8jxFjD6axb8K7HZk5mmDdpBTHlKivI0ci18lgjwbqxvzVvyTLTAdzNyyeRRvZhBqWQHmLzANaWdF8toTnfKWBDpBarxSf8bAwROuRjpXSEdnY6ern1oPyCKGwmABlyPJSA7luHj3PbvA+UN1xv5g7RwCXeOVwN7nKydrfz7D+OHkf6JWddtNNtmi5UKMtvaFgmMDcg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(71200400001)(7696005)(83380400001)(38100700002)(508600001)(186003)(66556008)(122000001)(33656002)(6506007)(15650500001)(66476007)(38070700005)(9686003)(4326008)(2906002)(26005)(76116006)(52536014)(8936002)(8676002)(55236004)(64756008)(316002)(86362001)(5660300002)(54906003)(66446008)(66946007)(55016002)(110136005)(6636002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1BGCQIuZ5xQFII8konKjs+u/9Ulo1THlkhv1pXAbzhKvWsowyraWpe+cBpjx?= =?us-ascii?Q?tqn4xaeFtpBYh75KHTDGMzMbCItt6qkCNJuc0lOgUVSQmQHqb2MsnhPT89QO?= =?us-ascii?Q?tm4QQPDHSDtofYAATEoksJjMLpryYFNcx7hOR4d/gWf8KHrQI/kXaIRnPiI4?= =?us-ascii?Q?5BocO+wCMx0mWPumKvsCtBORPJg6Gm53a5vlvhxLS+Z/VYxzum48VrcoHbdL?= =?us-ascii?Q?SODYdFEne/W0FAimtN0xBa3waPKGIprx4zwFWWG6B1BzkRCSWksZ9POwb4qP?= =?us-ascii?Q?Htc7Dl3sqK8tUe76B94tDur0KuT+UGcVTVlnrZnoKSYi6d4Vx/4w2IIA/Qf/?= =?us-ascii?Q?rAGovCRrJVcNWsgqqj8hAf1qcvm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?us-ascii?Q?H2Yubuw6bjrJqBTDUc59cNtv827p91nXwdthGO/IIMaO7zphzpHtwiwqd57P?= =?us-ascii?Q?VH1NOxZa08HOpKfPtOHB4jc+?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05178396-674b-4aeb-6195-08d97e8e8f5c X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2021 12:35:00.4178 (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: vB1YG4HUP8ZaSTSVg49u9B+KOYesHViRAh91wGngY6r1yXnsG0tvVYpwmfXwTBtNW/+MxG4EKVlPFCXufHQIoHY9WF/1ERBeu0ccbNxenYw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1387 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v6 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" > 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 > Acked-by: Fan Zhang > --- > 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 2e136d7929..495a228915 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 > /** > -- Acked-by: Konstantin Ananyev > 2.25.1