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 2CD90438B5; Sat, 13 Jan 2024 18:52:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A197640268; Sat, 13 Jan 2024 18:52:40 +0100 (CET) Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by mails.dpdk.org (Postfix) with ESMTP id 236D0400EF for ; Sat, 13 Jan 2024 18:52:39 +0100 (CET) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40DFYN73011976; Sat, 13 Jan 2024 17:52:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=2bqYPQgUpRniQgkoCgKNsf6tf6rbp+o0jFPjOCP7yr8=; b=Vxq00zYjhOpKLSYvMt0//cyzuPbIP6vLDEZqxev0Y0LHM9bxU/sWIIMQEzicT5Utr/RR dtuVKx80x7FK22YY/dGvDn8tFMp5MJ9rVyQvwiGTFx5KhQ9EkXWvewXLsnh34RdrbOeN +sl/7blCeMvWf7yyE/EcMwHm/s4Cddsx/CqOSDSleYbSpoheFLHzZsiQ2dBB6FDcy3Hg jGPl2SW7bEMuZ2rUYC+hpPkXMcv5vvd576rnsJ2VUwwSSaP7qn2iHBcWcmWTXj1pkK4S UIxBvR/4gb/mfv9/zRMn/zCv1f9mGVnmW7bvEUJHfz/YR8MnTvVAklRnF3BQqvBL1IL1 wg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vkjje8g8w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Jan 2024 17:52:37 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40DEYvwS023265; Sat, 13 Jan 2024 17:52:36 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vkgy3tr3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 Jan 2024 17:52:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CH8az/z311kO6qrsl3YYz0hAhIvdfgAcWC84TQTX5k8teYdhD1+PVGKxNAsQjnUjgQuZzB5ZTcO87zPqwN03ND9JSwTei6g5V4xEtBqV53ThiGRmLCwP3m+zbPuhlaMHKg2CKTPV87nIXjn7CU6WFQaaVCwyrzi+IPziQALUM8vycCzlyaRBZf7styRUWYyQ8myhSP42EsjxlQrL8U+q64bpKOaRzo1Qhe6L5wQafR2SVgyLFhK0xo5eVYb+YxyBRN7D4C1T6s9Cy0iTiBCpbBCeHtrqAR0iGR7Ep4Q9FDQG+9sgzwqReLHoZSjNI6GBiqs1Nf/FFVk7YH2D/mwszg== 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=2bqYPQgUpRniQgkoCgKNsf6tf6rbp+o0jFPjOCP7yr8=; b=Pm+ora65QE+c63LGbwtztctjrqrw6GEpHJpaVu0O7bhJCsucpJxLCPjY4R/JbEx7q5vC6C49MlQOWBcUQPaQJ2A5FCJBbEXNBdSo/1uLKWoDoEuqwY1B8Eh6fs0j7ifNaTvHC7mQM6jF/iOvrUadOWZTVJCGV0eEt7xAEw9Ewvkv8GEaJuoAmxqeMfo4AgwSU/Wjrj4fkbb2AsuQJ8fk6955wyWMWWU1Uo6tNbaoTA/aowpcSKplJVyTRr4FAZLHD6xDndeIvOeEelXGBgTy4xmMlKFzz2BK9Xmvg0WhKJlOvQVcdbYAHxqdRSY1HQsPwtGdG9vl+45/YbqZwp6BQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2bqYPQgUpRniQgkoCgKNsf6tf6rbp+o0jFPjOCP7yr8=; b=rxcKQPJA9dUC/DwVzVCZFWR6Y6z3zsFBIP88W4xCTC+Vj0BDy62VULeST1FNW9qlCwCWSA5NzGH38Z4191dCBUQ3aSw7F2LT/qMQyQopsUhEYOQUZC137hmQlTdxPas/aLEatLaBeFu/IXzmEiY4R242vUPGHVZjLH6w1imIvNQ= Received: from SJ0PR10MB4798.namprd10.prod.outlook.com (2603:10b6:a03:2df::8) by CH2PR10MB4389.namprd10.prod.outlook.com (2603:10b6:610:a9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Sat, 13 Jan 2024 17:52:34 +0000 Received: from SJ0PR10MB4798.namprd10.prod.outlook.com ([fe80::bfe7:9456:17cb:cb09]) by SJ0PR10MB4798.namprd10.prod.outlook.com ([fe80::bfe7:9456:17cb:cb09%7]) with mapi id 15.20.7159.020; Sat, 13 Jan 2024 17:52:34 +0000 From: Madhuker Mythri To: Stephen Hemminger CC: "dev@dpdk.org" , "ferruh.yigit@amd.com" Subject: RE: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements. Thread-Topic: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements. Thread-Index: AQHaRV4Rf7RgLGk4B0C7Hxjh8lHukrDWYecAgAGlXXA= Date: Sat, 13 Jan 2024 17:52:34 +0000 Message-ID: References: <20240112134821.2067-1-madhuker.mythri@oracle.com> <20240112084224.5121cce4@hermes.local> In-Reply-To: <20240112084224.5121cce4@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB4798:EE_|CH2PR10MB4389:EE_ x-ms-office365-filtering-correlation-id: 34d286a0-3068-41f9-701b-08dc14606bf4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5RqDdNR08lW1On4VrJUYZZ/xwVF+zL540+flciz0NB6T2GG7U/+B7/0WCM//VftcjWX+D9XyzSp6wf8fk06sTAR/fTfxFkeu/RWMANGh3uUh14qyhKwhMfg8dL8fhlq9QAN2mWtbBX/FvLLlgGMgTTd6MC83gMr9rP/vP83UM6Hz9ahaTSv9p0b+dwQTEGPv5JVInU7+QIj/sR7xSmFDJdoNQkTNb5k2kMMnc7EB+XWEo+oTXD1I3fM4P3xu2ad6O/zxca4a4ipQqJGYAntNE09uJsbS+7FR7m7YJqAr/61g1PV2UeExrzRBQMUokYmgZi5TtdyWkSQTtAoRQiFnE9ikVqT6/XQQdjhIfSQXhLNbtIr/9RVEf8lg1ULE2AEmPYNzdnE+5EjmBjKtX52PtroTVLtDD2WYoPR2JCWtnF8j3IrH7G30eemUCduJNnlQGJcjqsFMnmtaJrx623h8EyIF/bRqd0E0HLit8/XHrbOs2svhbwl/o5nhxu/VXxwDxUQm2FUO6Xhc6n0PASnBBZiBV96/Yk0LdDTI0vyfL3vTMN2GAo4wxpp05v0yYuRQJwUBkM3Fh1y4KEHuB96By7BnxkL+aqkt/oxpYql49Cl3+QJF5FVrYNc16Q6OBakjhWJTopuOsop4LVRU8AaMk13LYoJ6Iv41syyD9a6hkbI= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB4798.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(376002)(366004)(396003)(136003)(346002)(230273577357003)(230173577357003)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(6506007)(71200400001)(26005)(478600001)(7696005)(53546011)(9686003)(83380400001)(5660300002)(4744005)(2906002)(44832011)(4326008)(76116006)(316002)(66476007)(64756008)(66556008)(6916009)(8676002)(54906003)(66446008)(66946007)(8936002)(52536014)(41300700001)(86362001)(38100700002)(38070700009)(122000001)(33656002)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6PMSrnnghnDd9/3zEzHDp6MxAOkoW/BJKh4BQAoV6g1oFqJFmSlrbrDcpHb4?= =?us-ascii?Q?YqPWHDpiaoUDazs1kuzfELBd+JyDf+4duig9D0uszNKJcL8ABYvb4HvQyF9l?= =?us-ascii?Q?pfhxletGV/Zgv3ZKWRR/dpw456rGsmm7C2ZZOsF49+e3S9CFsKVnG9Eol5Oz?= =?us-ascii?Q?xXE3LiTkS6GuZlOBO/sv3XFyFxkakXhz0y2kAklwuQcqRVjijb4RWSgVazqE?= =?us-ascii?Q?Pe3agB50PaYSfepZgIxBoilq5Z3iZ45FM8RSxjplYARI2jVArLYlGiz0Og27?= =?us-ascii?Q?y5nZM/nlM+CkGRVJNT0zVnjaPSvHwh9Zcv5c1rdg2ONODWUg+RIaUzOI4NA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Kh7LOTfVht18LvfpiT?= =?us-ascii?Q?t2ZKHrEFXJrjR6zC3gj/qSi8oCn5t90gQDvTDt+WdoALFKm7ozVPOC+Z1Mta?= =?us-ascii?Q?W0GJclUWyE4WkJhLLaTOsqpnkulGCYsd9ivCk6USDQYuhftegl85rTNyBlmZ?= =?us-ascii?Q?IrDNl0uXBcQEAskqDWVY301q5SkB7s/yLydczJ/jnsmvzqazIt/1JsePcE0x?= =?us-ascii?Q?y6XMyxPqPuMRYTh+krU/9C9u0GBLOCERp2mPZ36dpIBACDp1vwu4oUHPQZId?= =?us-ascii?Q?10+GYL5riPwJIDDM7EkEsQP2aAGRDlbzcAHe7RI/nX5CG3sAXdZ9MFp+aZku?= =?us-ascii?Q?xRpHo5izOfuuFal+Y84y6O5uYEJoM1zaUHKJ3N13QtzQU7OzYvebq09IvK1W?= =?us-ascii?Q?GA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 9QZNUxetqQhwLt244eMw7erGnVrhDlth7xfa18irswiZBKR89gS5BZaOcERx+Tetl9zFfQIwBWdrPOZOKroBrL93xHp541Tt/F4uOQMzCJgTuXum2eNYbduApNWYje1EZIBAp1j4x46fID7r8ggFbXAThy5ohbVWJ144rc51dYTzYf/rApR4OFffpxL0CjaGxaprsbXbRLnOUoVc2gNGGqVcYpHV+zluwF3/yrP5+M+Ilg6acPj6YPAnmIEej9uxqI3hP5EI3pCFERmlmIW7zHIr/bggsqiWpZraY3oCf044PTCVlaf7byI8lyDurUla5bfHWsYByCDsbN61EW6bRoJozpyucbP4hSZXmGSNyYcnOz5nqqqy45N7eZ3tE8a6CohecyOfvVKwe9rlZAVrZ9TiLOz/SW9DU2iYaGLBZOaeg7a1FMNnZw91A0dfx8/BgSXYAE6V+P1XTu/4XG3iY5hcXZZSro9becn17Ix3UsZGnTyZvgPhwIP1BUHZXLxQHOcnVFECuUVlq4LjD5kJeZ93yM5z7B/RzzMVM0/iLSt6Y5Tql5lte2bFU63PYFUlpgWGToGSZiDqWY67kw/XOmiKHYI9rn//xfzPU1iMgqw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34d286a0-3068-41f9-701b-08dc14606bf4 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2024 17:52:34.0298 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: E3xIKdmdN4cfacEXyAbjbBqQg3NUdSmyuhFY8xxE8pD6S+eLi2B6kbD/5bEvKpc2rDHjSpwSd512/VCYiG/+flvKyCoh2kHpq5N+bxvT4Ag= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4389 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-13_07,2024-01-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 suspectscore=0 phishscore=0 spamscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401130150 X-Proofpoint-ORIG-GUID: a3YOcXMCff-yOcBystOIukkWgosJyzsH X-Proofpoint-GUID: a3YOcXMCff-yOcBystOIukkWgosJyzsH 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 That's true, SKB pointer access denied and throws error. So, I have to replace with this BPF helper functions. -----Original Message----- From: Stephen Hemminger =20 Sent: 12 January 2024 22:12 To: Madhuker Mythri Cc: dev@dpdk.org; ferruh.yigit@amd.com Subject: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per = the Kernel-version upgrade requirements. On Fri, 12 Jan 2024 19:18:21 +0530 madhuker.mythri@oracle.com wrote: > 2) Kernel SKB data pointer access not allowed, instead use the BPF helper= functions. This is not true, many of the current kernel BPF examples uses skb pointer.