Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp839006lqj; Mon, 3 Jun 2024 02:19:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/Qm2W808qqzKM1gZh65fnNBMAmQro9D5z3wpaynEnbVDcMHooDUh1E4fAbzoszy/sCmgyTKcDDQxXcgapsb/WEQIKwh7fEmjj3FsXsw== X-Google-Smtp-Source: AGHT+IEPlSBDtIHZRsYUdaQiLl4WM+/k64x+oMzJZ59KKuu5XOLaNFM7ef5GxJVFUGZxCJxqbmAO X-Received: by 2002:ae9:f44a:0:b0:790:6d09:a443 with SMTP id af79cd13be357-794f5ebf4dbmr1009324385a.72.1717406342778; Mon, 03 Jun 2024 02:19:02 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f32a6e7csi760322685a.662.2024.06.03.02.19.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=selector1 header.b="jxkNB/qi"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-198856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6FB971C21087 for ; Mon, 3 Jun 2024 09:19:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E25C37E79F; Mon, 3 Jun 2024 09:18:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b="jxkNB/qi" Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 136553D549; Mon, 3 Jun 2024 09:18:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=67.231.156.173 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406330; cv=fail; b=e6jP4x2S9KiGFYuLR2LhE3LN3WTfIfJSwht/RpFj3A7JZRTY7ws/5CAgoMmgfl0KQlLG85AP8G9pQdL+ut9uFRwWFc62ew8LsyJV7GO6Vdc8YNxbyzniCyPyMeYge++47F5t5xWR1DU5lvFQlOV5qyVLh7J7m1xbEtOW+1mfSxc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406330; c=relaxed/simple; bh=oUcyX1QC0waMplmcpxrRbcZrtuB/I8uhW1/YSoTIiDw=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=LPEh+HVyz3qwAtZVT7RMGo0bmvmYhb8LgWFOzttuwpaSgxvnsDrOlijkwTChUW91BkGaBikAxN0jclU3pWM0Ri63ltff54FBE7PdHHk+UnyyLEC+jajVqGm7QGAH6JCGL19nuOff1iQpTaHjTzDA5BK51MVY+r2FUoTcAG186qg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (1024-bit key) header.d=marvell.com header.i=@marvell.com header.b=jxkNB/qi; arc=fail smtp.client-ip=67.231.156.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 452Nmwsx027485; Mon, 3 Jun 2024 02:18:38 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3yg35hcaqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jun 2024 02:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OR3nQbPScyMiDitXHDEnmRnZFSJluKOVnlGOJ/wNcJQo47eNvL0W8sEDSIuVDwkOaMXP91zBvmld/PvvDNXBMcUVRhROSpaHIZTw0p2qjokLZw9kL/BQ2wGZQdA4Uo12mv63dj9oE3ySs3S05dc554D7bbqfnAEL17DsMjJKW3IOxQLtD/Ou0bOuXkFhpne4mmenGNlUR48wZG386AlKgvCRK7/hGE5QT0NoI8RYH+UfaHEn6O4hXmuCYpO+LXtQ5eW55E2W1pZ07LyhDHGGu5Zia4aTvkxOLqXE01sYl8sjd9+mVIe+NlFQBVrDBoUZS6qbD3jTq9Dxu/Dv9hwu0A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=s5jmciu/SBM7tZAlCf8NES35V+eEnr/kswpmSN7Y7Fs=; b=W9MGUbBXKdP6Qk8GRWglQiXtfYQ++Yot9bSFgrthkR6Lmb6psex4bF1r9SLHN6Pp7fHgYpnbLncj4JsYZaTMDng2V1v5w+l80raZ9xzXGmTk7vagELrwXI5ooyMSsokwAnMG6j7OpiR9GrhOm4JWHdtKrQqpVDzIJvh0quCbUp6OprEo1DfWt6khHv0TGjCm6GaYUKcSQCN0TaI1n1xBDIruXosNEFNLnx8r7LU73hjqeMyn5PbqBhnm3ye5WkIrUpTayIWT8/2DfJkW3U6CuHrMlhAJ0j2lroTPZ1VYmVDJ9meTAPXj1zYTonAt8/w+2shvE5Ap9iW41tfSyeC7cg== 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.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s5jmciu/SBM7tZAlCf8NES35V+eEnr/kswpmSN7Y7Fs=; b=jxkNB/qig3BlAecHnRLjjFrD0Pli/buX8Z9xDNvGGVQktRfWV/b0xHExe3KI6sgD5kvwjrdlD+SwDQ8btIACzGf4mL/C9uKLXUDGpjp4d/n0qwud8/7tIHqlDfkiMQoEkQdTGfMow4jnvHr/uzt1oJKEC8Y4moCGr0VVLfeXyyg= Received: from SN7PR18MB5314.namprd18.prod.outlook.com (2603:10b6:806:2ef::8) by DS1PR18MB6135.namprd18.prod.outlook.com (2603:10b6:8:1e1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.29; Mon, 3 Jun 2024 09:18:33 +0000 Received: from SN7PR18MB5314.namprd18.prod.outlook.com ([fe80::f808:b798:6233:add8]) by SN7PR18MB5314.namprd18.prod.outlook.com ([fe80::f808:b798:6233:add8%6]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 09:18:33 +0000 From: Bharat Bhushan To: Sunil Kovvuri Goutham , Leon Romanovsky CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Geethasowjanya Akula , Subbaraya Sundeep Bhatta , Hariprasad Kelam , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , Jerin Jacob , Linu Cherian , "richardcochran@gmail.com" Subject: RE: [EXTERNAL] Re: [net-next,v3 6/8] cn10k-ipsec: Process inline ipsec transmit offload Thread-Topic: [EXTERNAL] Re: [net-next,v3 6/8] cn10k-ipsec: Process inline ipsec transmit offload Thread-Index: AQHasQaTfyi6mWkXDkOBPclCj0tdJLG0EIWAgAFrzACAAE9NkA== Date: Mon, 3 Jun 2024 09:18:33 +0000 Message-ID: References: <20240528135349.932669-1-bbhushan2@marvell.com> <20240528135349.932669-7-bbhushan2@marvell.com> <20240602065125.GH3884@unreal> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR18MB5314:EE_|DS1PR18MB6135:EE_ x-ms-office365-filtering-correlation-id: 06c24045-bd7d-4ff6-2a99-08dc83ae2424 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|376005|1800799015|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?hqHXOz/VID+KdoW8H/PW/C3LfaiyItN25evkBz49vH+b3JOLsbs2sAR2RQHv?= =?us-ascii?Q?2BTHS4t72HNa5lvOo2/Lg2ZIbslJLuz6akuQ1rlfaPY/aGWflr5Sur8DTzZC?= =?us-ascii?Q?wzJCVxsJgI9yT+G2uPID5fE29Bj+PMZdQ3JOgpo/7VD/8J+c23sHkbCCN4lN?= =?us-ascii?Q?Ey5IrymjRMuPsHJvRiOoxdd+Mc4GKvJ3VZQFlJROBk1YRSdp7NLd/IzJtHnI?= =?us-ascii?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xwItQAL3XbH?= =?us-ascii?Q?26jTcWLznOZkNDbpyMbJRy/85xtbcJdm3RktEOWivSNq/VL143h+n7kxI5Np?= =?us-ascii?Q?FN40MZv9VzLI06bI9i+PtDDSnhKBRqwyJXySmt/kchbcLdwdCjb/q0UF7kDp?= =?us-ascii?Q?gotH4qAXO3wciCA29WbQdCvgbK4xcAgdqjVwLorOG1/wQfW0UKzLM2dFzmCf?= =?us-ascii?Q?NUFuVUbOYqsQhdjzKX1076J6?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN7PR18MB5314.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?E+9/1waeyODTJ96j70yiSHqwwyV7hwFoEQ2N+dQhmv63y+wU4joxcvaP0M8k?= =?us-ascii?Q?q6RrtnHR+XQsAYDfp4nPqDj86kzqdix9W9MIx9kajuSgeDg9L1WWbRTxaIKj?= =?us-ascii?Q?+/uKTvn/61lQ7pC6hkn+ZCD/hW+q8+3qC5O+NfNuhV/66CaqJI0CsnxAabeJ?= =?us-ascii?Q?ULfoNaKVDNik+JGhNNjxPC8rhKPVgieieBImipWMqsEFWfkNe4N6H5FY2Ayq?= =?us-ascii?Q?K+MilXMEgx394mNQ3I42O7jfXRk9nowplgzZIdXvsG0SuEOuFu0ZvAwrQhhw?= =?us-ascii?Q?pn4Aspneza430sPEvO31at6vcfKT6YDAX8lDEix4I8fUFf9qux2/K79caNC4?= =?us-ascii?Q?yKFXXXfJ8lTrGLM9N7COMeiqePZsMBwRJkD1abMeGjiAdcPWKx+6FmtOb2WD?= =?us-ascii?Q?XSMNb0AeV+6PT2nJrt0s5ms6bViFw6sx6VbAL1Slwx9sTtRFhMSJyLLoWCp2?= =?us-ascii?Q?y1nu4ZltCqm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= =?us-ascii?Q?NDHEUzg3QCV8Ggitnx/8xvOsy9ecmjzKH+d+8c7HNAp3dEYXESFP2ZB84+Li?= =?us-ascii?Q?iKCWbOlvv81UVR1SLGPr7SRZNfBlh6WyYOMkt28hOulmOUzosqsUmIvYAuoZ?= =?us-ascii?Q?ckgxAntJ5bD/3WxSKymrwaMsCG1LGjIC5VlK2b0fjCgTcWIZZYxRo/q271Sg?= =?us-ascii?Q?j2z21EBJtaN39Si7mOsC+ya2j0x6hALuNquMMQkE?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR18MB5314.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06c24045-bd7d-4ff6-2a99-08dc83ae2424 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 09:18:33.3090 (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: nWK0hWq02prW8eYguU8LCoszLp0UrcK5AN/s5WsVjO9j3NOTc/48BMra3smGpsByXLaWgZN8MrTykI13f6rBqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS1PR18MB6135 X-Proofpoint-GUID: WjCdkk2mpP-Sc4NK8upQsHdQT29zHC-j X-Proofpoint-ORIG-GUID: WjCdkk2mpP-Sc4NK8upQsHdQT29zHC-j X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-06-03_05,2024-05-30_01,2024-05-17_01 > -----Original Message----- > From: Sunil Kovvuri Goutham > Sent: Monday, June 3, 2024 10:04 AM > To: Leon Romanovsky ; Bharat Bhushan > > Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Geethasowjanya > Akula ; Subbaraya Sundeep Bhatta > ; Hariprasad Kelam ; > davem@davemloft.net; edumazet@google.com; kuba@kernel.org; > pabeni@redhat.com; Jerin Jacob ; Linu Cherian > ; richardcochran@gmail.com > Subject: RE: [EXTERNAL] Re: [net-next,v3 6/8] cn10k-ipsec: Process inline > ipsec transmit offload >=20 >=20 >=20 > >-----Original Message----- > >From: Leon Romanovsky > >Sent: Sunday, June 2, 2024 12:21 PM > >To: Bharat Bhushan > >Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Sunil Kovvuri > >Goutham ; Geethasowjanya Akula > >; Subbaraya Sundeep Bhatta ; > >Hariprasad Kelam ; davem@davemloft.net; > >edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; Jerin Jacob > >; Linu Cherian ; > >richardcochran@gmail.com > >Subject: [EXTERNAL] Re: [net-next,v3 6/8] cn10k-ipsec: Process inline > >ipsec transmit offload > > > > > >---------------------------------------------------------------------- > >On Tue, May 28, 2024 at 07:23:47PM +0530, Bharat Bhushan wrote: > >> Prepare and submit crypto hardware (CPT) instruction for outbound > >> inline ipsec crypto mode offload. The CPT instruction have > >> authentication offset, IV offset and encapsulation offset in input > >> packet. Also provide SA context pointer which have details about > >> algo, keys, salt etc. Crypto hardware encrypt, authenticate and > >> provide the ESP packet to networking hardware. > >> > >> Signed-off-by: Bharat Bhushan > >> --- > >> .../marvell/octeontx2/nic/cn10k_ipsec.c | 224 +++++++++++++++++= + > >> .../marvell/octeontx2/nic/cn10k_ipsec.h | 40 ++++ > >> .../marvell/octeontx2/nic/otx2_common.c | 23 ++ > >> .../marvell/octeontx2/nic/otx2_common.h | 3 + > >> .../ethernet/marvell/octeontx2/nic/otx2_pf.c | 2 + > >> .../marvell/octeontx2/nic/otx2_txrx.c | 33 ++- > >> .../marvell/octeontx2/nic/otx2_txrx.h | 3 + > >> 7 files changed, 325 insertions(+), 3 deletions(-) > >> > >> diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c > >> b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c > >> index 136aebe2a007..1974fda2e0d3 100644 > >> --- a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c > >> +++ b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c > >> @@ -7,8 +7,11 @@ > >> #include > >> #include > >> #include > >> +#include > >> +#include > >> > >> #include "otx2_common.h" > >> +#include "otx2_struct.h" > >> #include "cn10k_ipsec.h" > >> > >> static bool is_dev_support_inline_ipsec(struct pci_dev *pdev) @@ > >> -843,3 +846,224 @@ void cn10k_ipsec_clean(struct otx2_nic *pf) > >> cn10k_outb_cpt_clean(pf); > >> } > >> EXPORT_SYMBOL(cn10k_ipsec_clean); > > > ><...> > > > >> +bool cn10k_ipsec_transmit(struct otx2_nic *pf, struct netdev_queue *t= xq, > >> + struct otx2_snd_queue *sq, struct sk_buff *skb, > >> + int num_segs, int size) > >> +{ > >> + struct cpt_ctx_info_s *sa_info; > >> + struct cpt_inst_s inst; > >> + struct cpt_res_s *res; > >> + struct xfrm_state *x; > >> + dma_addr_t dptr_iova; > >> + struct sec_path *sp; > >> + u8 encap_offset; > >> + u8 auth_offset; > >> + u8 gthr_size; > >> + u8 iv_offset; > >> + u16 dlen; > >> + > >> + /* Check for Inline IPSEC enabled */ > >> + if (!(pf->flags & OTX2_FLAG_INLINE_IPSEC_ENABLED)) { > >> + netdev_err(pf->netdev, "Ipsec not enabled, drop packet\n"); > > > ><...> > > > >> + netdev_err(pf->netdev, "%s: no xfrm state len =3D %d\n", > >> + __func__, sp->len); > > > ><...> > > > >> + netdev_err(pf->netdev, "no xfrm_input_state()\n"); > > > ><...> > > > >> + netdev_err(pf->netdev, "un supported offload mode %d\n", > >> + x->props.mode); > > > ><...> > > > >> + netdev_err(pf->netdev, "Invalid IP header, ip-length zero\n"); > > > ><...> > > > >> + netdev_err(pf->netdev, "Invalid SA conext\n"); > > > >All these prints are in datapath and can be triggered by network > >packets. These and RX prints need to be deleted. > > >=20 > Yes, all these error messages in datapath should be under netif_msg_tx_er= r(). Will delete a few of these prints and rest will be moved under netif_msg_tx= _err(). Thanks -Bharat >=20 > Thanks, > Sunil.