From patchwork Thu Jun 22 06:58:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 13288331 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 3DE6633CD for ; Thu, 22 Jun 2023 06:58:24 +0000 (UTC) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35BD1FE3 for ; Wed, 21 Jun 2023 23:58:23 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35LJYtAT016684; Wed, 21 Jun 2023 23:58:09 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2107.outbound.protection.outlook.com [104.47.55.107]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3rbyhq3yyp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 23:58:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lnh6NHSvg5IRdsXy/MDs/fBrhWnoJdu6najlS7XSoSs7Dy4+caZmwe5LpTLONa/47AqxKJrMv/CQAgwP/MwNI0hYLFsDd3oNOGB2ZDyaDF+FNsEGwqKtZCqXhgBLCpcvWYHSy9yHc79KBrUWydGOIysXwXosMa/genKTza6zNHWpxyx3TlQrXtuthpIXcWPnrp2cu1IQZORXvU1L/bUzgIIezIAbxV7A+7x3pzpYN+P3dO+NiiiJpErfQD7kfgdnwZl4o2CoJOUr4Rujp/Lu8u5ExBLlBtMM4/8I7znlW7CeYTDkeO6nmABTXYhOkLfQBqjhcaPp3mRmURFACbJ0vw== 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=OIY85AyXGItOs+7PiQI/4+Nf10pWNoWptNlKHLMnKnU=; b=JepBSKOpp3FydHH9UP+qlrQSGVDzPSdfUqXd+nSS5cS4lubnQrWoxUQJmVLPPo9swZ51ZS58hTq+tlVdhDVLyOWUYjciNqCXkTNHLatrvRUxXOPOT7G0/nJiOVI1AkvFtmVPEQ0XOb0773/2Rbv+yGkUyncT5hv3sjNp0DuYpl/ceTdOPwMdxpBkLSiUthE5pCJS9ufxVro58g9aUKGOPluJkw3izYsc6M3ZDmbv9lSu9eLcHO0yGAFr9NiFVJ03Wia0vcg0ksVtWPmpx8n7LXpctQHqJHNELTG+PqR9oZ5Of0ZrEj1Tppj0R2Brc17dW1tPjf/7Q2T7798KZUZoRw== 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=OIY85AyXGItOs+7PiQI/4+Nf10pWNoWptNlKHLMnKnU=; b=E7BI+4BgJwMO1bkqeY1uZEKutVKBYr0QfcuZkKxRdnPMRv5VxrDegFQ+smU5CO5jDDbgi7rvmwjt0yINGY9IwfyMoTzzTOxfn2twGGzI8Dc2+7FfNDoNUmqGdcTqfs/Zr2MYnOag/AiMQcsxBclKRUIB+EnjTC/cjnTXS3MjwM0= Received: from DM5PR1801MB1883.namprd18.prod.outlook.com (2603:10b6:4:62::23) by BN9PR18MB4380.namprd18.prod.outlook.com (2603:10b6:408:105::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Thu, 22 Jun 2023 06:58:07 +0000 Received: from DM5PR1801MB1883.namprd18.prod.outlook.com ([fe80::8728:7063:8550:fa8c]) by DM5PR1801MB1883.namprd18.prod.outlook.com ([fe80::8728:7063:8550:fa8c%5]) with mapi id 15.20.6521.023; Thu, 22 Jun 2023 06:58:06 +0000 From: Bharat Bhushan To: Steffen Klassert , "herbert@gondor.apana.org.au" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni CC: "netdev@vger.kernel.org" Subject: Setting security path with IPsec packet offload mode Thread-Topic: Setting security path with IPsec packet offload mode Thread-Index: Admk1UA41QynfqgHToW8V0QW9ig8vw== Date: Thu, 22 Jun 2023 06:58:06 +0000 Message-ID: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYmJodXNoYW4yXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctMjE1NjRjN2YtMTBjYS0xMWVlLWFlODItNDgyYWUzNzQwYjc2XGFtZS10ZXN0XDIxNTY0YzgwLTEwY2EtMTFlZS1hZTgyLTQ4MmFlMzc0MGI3NmJvZHkudHh0IiBzej0iMTYxMSIgdD0iMTMzMzE4OTA2ODM4NDAxMTE4IiBoPSJzSFdPcXVhMkpCMDVBWVFsbTl2d09nbFZTcm89IiBpZD0iIiBibD0iMCIgYm89IjEiIGNpPSJjQUFBQUVSSFUxUlNSVUZOQ2dVQUFONFBBQUJlUVBMajFxVFpBV1FJVCsxL3dzdFRaQWhQN1gvQ3kxTVpBQUFBQUFBQUFBQUFBQUFBQU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ms-publictraffictype: Email x-ms-traffictypediagnostic: DM5PR1801MB1883:EE_|BN9PR18MB4380:EE_ x-ms-office365-filtering-correlation-id: eac68923-b3ca-4318-bcb2-08db72ee0818 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KPrMCVQXIGDO+uLlOj7vuJfTwK2g+K6gMaA8d6qR1Ftd16KK8WplGYNHwBPktaGITXaDX2cHPEhv2KbFwycBbSziuy6YjMe6hgOeXvdoP2jsN6hfOExsqn+r4oKtwKICzL/hcMiW4VqRhfjmJCyiFUDnt/4hGRY613pTynw7AzpjEenzOzlDd8OK0lytw0OduBoGCggeBJRD0xOVvLj6+J8uFbtbPlddT+sMdPoa7fuVazBIUFJXDbVRLQ9Tb1p61uAOLWPcMcwWIWVeHNC6EubBt3NsQ9VCcZSFQbZmbyVop6+/kGt6jLxKgAL8U9RmVbOY/MhH09c8VTC15rDv7L5/xZ4GQwKbe6I+C7S905DOr0rYiIy4OdLBJ8WIxAsuMR02Bh61+IrXRGj13cOMALBBYqoJu5c1SDr92aHWXNW2hHT9aB+EjrlIKuLq5ldqANQ9cRaXTsl+RYtdcG+l1vIAtThIPtsiiaCse0wgAFxr29dH7auFzZidR3SnLanHXoPBWOxGV1DoHZDmk81lwPWBoua3ZVlW0JSaNIBncDJrkeAqvd3qi8qw0+Z6CF8juMhh1DV3tdgytN9qRCt8kqOrxuzGG87DL7kod+YfjINdV9hzJKh2A3wm4IDGnf04 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR1801MB1883.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(376002)(346002)(396003)(136003)(451199021)(2906002)(478600001)(110136005)(38070700005)(55016003)(76116006)(316002)(66556008)(66946007)(66476007)(66446008)(64756008)(83380400001)(33656002)(4326008)(122000001)(41300700001)(38100700002)(7696005)(86362001)(71200400001)(15650500001)(9686003)(26005)(6506007)(186003)(52536014)(8676002)(8936002)(5660300002)(55236004);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 0MB+IVSJ4AKlamFduOaL7oV7sw0ZjhISW3I1NK1HmUpW18skoiD7XGt1U03MyI8TpRI1zC7kdgH/BORRSgNukubMTcyCnIzRUuSW/NGDjJ512BdjhDDHuJ7lNMHon8ivqHoNDfa5vkux1+tjPcvNRS31yl2OG35LbvaPR7iL+/uB1j7c+YEDiz5ZInTUzLIUzd6TXDiY/rE5MFlh2ryBHBxauPm+bA5N5hCDbfymATR8a+dXmEXgHmUXpfhU0P96RxXgZCXR3BzcID47uJXbIEDGRt4w/YEaLRzXSFVdSYZ+96Rkqh2kxizlklRcxDGN4lxDrvrSLf8fODiAMVXQAai846kETdI7NnSq78AAF9fYW4s60Y5BWxfGreM4bF1Td04+/qHuP8kGkHCLPFYYk2ar2EvbnJBlXkqWMka1f7zToO4YJ/+uG/1HKvFw+wyz6mDf9deK6WrtQaLLrIoYKmXjFR31P7xUUB5hjbmHwCXMlFhK15kWTyWJvt95SL2W6ZFfMRnRnSHizMNEpIXlbQNRXk9SEUkZradQZC/ZeFK+tshXCPclC6Dvf2fUAg8zI6z6DvOr18ApSFTFuBkf921j/V1zgoKBqtC3Od71N1YoClXs+z5oFR09HNaZ4mOl/L7pw0EJjJ8OQDNsHpYmZoEJ6Mn1aoWpgfT9MfxXuOFB0k9PHr2FltVm6QusDShAN4867JNPuFi5AyzF396DUUpK0ysd/FYGN2Pv/WKemEG5OlRUu3ffJK5hgttduFiCX7XbO/HopPFbn2rw2DKikuN64Yu84rHY/aGQrZLDUL7qtKPK2ZKFaQWtY+fNIYMfuVS8psGKGKX6Y8RWU5D+7ZPXQjtuI3Fo8P+S6cKPryUt4VUeqWTrqtAaB6caZtxCzkkUMt3rcWdSO8iFGFfZOdKGYI6QCsU1syzHmY0JT8jacOyyXKEnXd/vE0y+w3bG9mmdE5uprpSsl7Vndciv2UaUsTdpq7USenzmPz2/nAc8Psi2O0HkfuYMK2MwA64nVKC8aU35jDVjuMYqeQIqxoW3hyUGQ6GKJ/p1noTYg9TAoZWSsafi1FEnIM7wyEuhPUtTBDHJrIfqP7EwA/EZY1roJsDs931Uog5/j7ykmLxBOLwb0xiK2JDcAo/z+KT583UaHqkuCY5z2pxzwKb6JpD06chhZH90BGGn9t+FrlYmGhe+3zzxZwuPOw9lN2shmeum5fcEUHVi+a1SPYAbYsP7KvIKufpMdGYvwzFefmlBXOToYAEEAMQmGE3scB2JozRmAM3qfeKYRnWkxiI0hWSQFA8sIx2SSeZqBZJyRhQaHvTZ+br/fUm6q+QqT7rKHFOPEBSiElEJ1AveuW3Ga/WZGiiQypo9S2yRBQCR5AhtdZoiuuU3RJAABWmwvH0CeipQxoTX2JLkisiYJAGi4XSceFD1nwI25l/IN1MBHrUQtkT93Rjry+QoFNjFziplP/Oz4EEF6ruUWsMYQgDFW4JQcksCDBzHuUyV+mbbpWq8EPWwOZOw+VK5245qpmmMQ0pft0Wdcl9do6Dpy0wzBajZa4L2bAYNHkQW6W5GxlYAl45YNMM9MI5Wm38Di33r Precedence: bulk X-Mailing-List: netdev@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: DM5PR1801MB1883.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eac68923-b3ca-4318-bcb2-08db72ee0818 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jun 2023 06:58:06.5967 (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: XSEOPcW8X8pjHPlwW3cMPr56s6Ft40avQHBo0m+/7kd6mnis9r6AEdcE4qkRTBi2u0wRQBiAQgxfz2qzRPmBdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR18MB4380 X-Proofpoint-ORIG-GUID: Poc8ZJabWvoOf2qdLbeDLyg8LlVmxayE X-Proofpoint-GUID: Poc8ZJabWvoOf2qdLbeDLyg8LlVmxayE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-22_03,2023-06-16_01,2023-05-22_02 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Hi All, Have a query related to security patch (secpath_set()) with packet offload mode on egress side. Working to enable ipsec packet offload while Crypto offload is working. For packet offload xfrm_offload(*skb) returns false in driver. While looking in xfrm framework, cannot find where security patch (secpath_set()) is set with packet offload mode on egress side. For sure I might be missing something here and looking for help to understand same. Meantime just tried below hack: Thanks in advance, -Bharat diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index ff114d68cc43..8499c0e74a5a 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -718,12 +718,24 @@ int xfrm_output(struct sock *sk, struct sk_buff *skb) } if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET) { + struct sec_path *sp; if (!xfrm_dev_offload_ok(skb, x)) { XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); kfree_skb(skb); return -EHOSTUNREACH; } + sp = secpath_set(skb); + if (!sp) { + XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); + kfree_skb(skb); + return -ENOMEM; + } + + sp->olen++; + sp->xvec[sp->len++] = x; + xfrm_state_hold(x); + return xfrm_output_resume(sk, skb, 0); }