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 76F30A0C4C; Tue, 21 Sep 2021 15:51:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B5D440DF8; Tue, 21 Sep 2021 15:51:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7F12D4003C for ; Tue, 21 Sep 2021 15:50:58 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18L99Z3Q005750 for ; Tue, 21 Sep 2021 06:50:58 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by mx0a-0016f401.pphosted.com with ESMTP id 3b7cgt8w7w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Sep 2021 06:50:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gLPKMDimCSRpyH2OXkFYakxogzJb7Ctn1SUo2FrgXh81OxR1Qrpu8SvCQgOK5d6yHAxjn3iAIsabYcpNPhc8StGHJDnLpLbBHNv5xCDWhzi0PTkPPK6tFadz+nMXfU1h/FT7oRc0sbIoXCGg+1V0kN7NvwYivYXzWEyEOmtorS+09EgT7TvMVkToEXdjYDhuhzAsetg9/F4aNzP2cTQnwZW6E5qEacS7A5HiZMUvcPRrDrpr/ixUEXBpOFqQRynCjscpN4dFIdzh9WYymh1B5crh7g1JvRpxslRVFZvutsj6JZ3ExoJ79eO7XX3iOWg7nBdHl9lnSDOHOZhJIFVPjQ== 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=7cbCFrJvviwvSJBJrREOfF5CsUweYClIDJoi7DK5DLs=; b=WFDLADRKw6cFbClRM3AWFKNGvHeTGg9R+m/MG48r6Ex27ejISRnhWMZwWw09S/yt+SSXeOWUMX93oxjCd5S6iKK+yi2/Slk+7IGsWWmEKt38xSYPnOeV1qGRXhjxq2OYNXkaWfQB5ONkGM4ELfs7Y5G1o6GsW17OW0HjLHXWJgT9CWQljhm+UqIRbCqwNbkhkHpgW7izUDhGSkqW+1WmYf2+GE2YvZc5CUn6l7EOFWjtpJZK+K/3KASGB6VhMFhm8ytZaIecYDg36xUZoC6raVVPfVnpeD85SehwncNax3+lw17cSD/XWbWOuKAnRmBHUDyig+N0GyJ/vbXeGMck0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7cbCFrJvviwvSJBJrREOfF5CsUweYClIDJoi7DK5DLs=; b=T7Czy1/GWHpvJJ6IwAQMI7saFQENvdV6rQFOdOJF8FWPgkKK7HCdqzdfuOSZdOdJOAI5D/Pel7oIcPeV5fwfz8ZCqt3U1ou0hFB8GYy2aroQToeuRO8naKecvDw42CI1Ox/NuNoaR2NVuiy4/E537y/PPilS/FFM3mQpWFu6MMQ= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4796.namprd18.prod.outlook.com (2603:10b6:303:ef::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Tue, 21 Sep 2021 13:50:54 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::f068:d9c5:99fe:31cf]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::f068:d9c5:99fe:31cf%8]) with mapi id 15.20.4544.013; Tue, 21 Sep 2021 13:50:54 +0000 From: Akhil Goyal To: Nithin Kumar Dabilpuram , "konstantin.ananyev@intel.com" , Jerin Jacob Kollanukkaran , "roy.fan.zhang@intel.com" , "hemant.agrawal@nxp.com" , "matan@nvidia.com" CC: Nithin Kumar Dabilpuram , "dev@dpdk.org" , "ferruh.yigit@intel.com" , "radu.nicolau@intel.com" , "olivier.matz@6wind.com" , "g.singh@nxp.com" , "declan.doherty@intel.com" , "jiawenwu@trustnetic.com" Thread-Topic: [PATCH v6 1/3] security: enforce semantics for Tx inline processing Thread-Index: AQHXqk8EqF3rG9ZcxUistlFyaj3df6uuinWA Date: Tue, 21 Sep 2021 13:50:54 +0000 Message-ID: References: <20210624102848.3878788-1-gakhil@marvell.com> <20210915163001.26859-1-ndabilpuram@marvell.com> <20210915163001.26859-2-ndabilpuram@marvell.com> In-Reply-To: <20210915163001.26859-2-ndabilpuram@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 38fbe6a2-d02b-4371-19d9-08d97d06d4c3 x-ms-traffictypediagnostic: CO1PR18MB4796: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2yIn3S5NdCJqBvMtIo6BH+MsjADujZuLNhgCKPA8P0Cb620nHznfB+3i+C7g6J0j9Y32hVpmoAJDfVQ3ZZmzpUhsFYQ4UAo+e43BwaIgb5AlZDzDQlqfZy9kz7DLodX/Ew0SQHbhmTkSabHnwiqnI9Ic8AuzR+6UYJLsfjdbtChjggcdkCFD3vcaw/vl3rTHiRzIsyrqTbQFvliy6KV0jjOYqA6t9rf7TD4KLFPqMmSIOvf0eHtF3RyCVJrKO+4Ts2vnCXvE5ers7yeHqrfS70ITvIfLbSJJ2W672MPpgoDpMf2I28I4IzTaBxgyPAMU2s7tSgNK2jmvsYE3Gbwn7C8mwzfSqnb92E14n8Gnn3ezcphjAydip2JG/nnfckWSTjlk6TwpvARZgfDxa0j6tk+zmfOe3LdY1D+cAb16qM0tDts2bSPE/Ods05xYsQp/ZtffjzPcqeb5fgqn7ZrU5jgR3wnhBz0WE+vJiM4IWQsSjwJCeG6jf2N0pXRa45BSMmr7mIdFtp2tS9KeOYw86rMNTE2i91OcO9sW5bn0sIVhu3qXfs1P8YK/hs4OMSNWkmtEJzavup+yGagTUNDG/aebINDS4Bl8gUiO2hhKOO8SAWGkKS/YNZXWXyoG49d9+THK7vkGfxji745k64bB8yRuXLAY9MXF63WdUsh1DeSIy5xOWU2F9Frr9tKbKABqsDdIUUCnnul+WnqDw53e7w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(508600001)(26005)(122000001)(316002)(8676002)(8936002)(66476007)(4744005)(66556008)(4326008)(110136005)(55236004)(71200400001)(186003)(54906003)(33656002)(38070700005)(52536014)(83380400001)(5660300002)(15650500001)(6506007)(7696005)(55016002)(64756008)(7416002)(38100700002)(66446008)(86362001)(76116006)(2906002)(9686003)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FoVCjPejToMjXptrwn0X4cjLrmEKzy6QRUZsdcmdI8V3pqSx0Y+GzFI2mnxh?= =?us-ascii?Q?7Z53uwmvDvbZpqr+QchJRwAHXVfHBG5JHVtFwyBMIPmWKduwpI9DQCgzOVVT?= =?us-ascii?Q?fgd/ofJG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Hwu5T?= =?us-ascii?Q?aTZemIOekXaSDZaXJXjxmBom0Ca1lU3d2Vz03QMpowLbUdHmzJQ8SPf4bSPl?= =?us-ascii?Q?oU0928DlgICLRDmywnFFc58SNKwIPOQoH0yCP6UEqCsLquNgxH7X9FGodxhe?= =?us-ascii?Q?TF3GYWSUUlLz7uPpYCR2RCUT5BtB4dcUVHRLH14NsnIKi5ku5zdGNzuVNaHO?= =?us-ascii?Q?Uw4q0e/9adQXRTx2v1+hLWqcWro/Y6oxAjJIrHcUI/JiDU0vCePJmP3x1AN8?= =?us-ascii?Q?MvXiVqCNmRJVAQ7R3kGK1AVoivX+4IsxMoW/zcW2O724vteMLMMvGZGiCiW2?= =?us-ascii?Q?XXQCZkC6re3ejGQamcU4nyXn?= MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38fbe6a2-d02b-4371-19d9-08d97d06d4c3 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2021 13:50:54.0595 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UScpLZG1nOlEkZEc5eVeIEwdu4mkAusEmNfjArDgERLVhpHoHCblkKrtgo42/86YPJI1NOwm2ludJj+ELRxHew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4796 X-Proofpoint-ORIG-GUID: UTnT0QhMu_h4N2Q8ANj12ELCnWrZvsZP X-Proofpoint-GUID: UTnT0QhMu_h4N2Q8ANj12ELCnWrZvsZP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-21_01,2021-09-20_01,2020-04-07_01 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v6 1/3] security: enforce semantics for Tx inline processing 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" >=20 > Not all net PMD's/HW can parse packet and identify L2 header and > L3 header locations on Tx. This is inline with other Tx offloads > requirements such as L3 checksum, L4 checksum offload, etc, > where mbuf.l2_len, mbuf.l3_len etc, needs to be set for HW to be > able to generate checksum. Since Inline IPSec is also such a Tx > offload, some PMD's at least need mbuf.l2_len to be valid to > find L3 header and perform Outbound IPSec processing. >=20 > Hence, this patch updates documentation to enforce setting > mbuf.l2_len while setting PKT_TX_SEC_OFFLOAD in mbuf.ol_flags > for Inline IPSec Crypto / Protocol offload processing to > work on Tx. >=20 > Signed-off-by: Nithin Dabilpuram > Acked-by: Konstantin Ananyev > Acked-by: Akhil Goyal Title updated as mbuf: enforce semantics for Tx inline IPSec processing Series Applied to dpdk-next-crypto