From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB591A054E; Sat, 15 Feb 2020 09:35:54 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3EE10B62; Sat, 15 Feb 2020 09:35:54 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 76270374; Sat, 15 Feb 2020 09:35:53 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01F8UI1Q015656; Sat, 15 Feb 2020 00:35:52 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : mime-version; s=pfpt0818; bh=eqF8NSIbV/kpREyXPVrGgUtpoCVyfqi+5xPPFNSgojk=; b=bh3qt0v20oDqccKjiivyEuO+fNUbSLhiDcTwbtC75csfVVbIVxFmDmVeL4OjxMK36MA6 qePm1wR0Ay7MIBuW0n2LdXpwcQ9Wn3ZnLV4v/uVJIMktKyq576BZRGzkrvDN+t60zvlM PuwxIF8+JvZCZsGOGx1rBxZU7ErlJcY7xrzUJrWb+Ypy8Bv5WXXVX0cMhP/xukOAd3Hs QxZSc1wZ13CLZsNh3wiKN/EJJzl1XvORNsUDze4XVfefwOsZcsPmzVQBpk9yPEaPuPCb Pz5+fhNWzKqqVHZ0Xd41VCYwsapCC2NAxRm7DNA+GvQcEMFkAHzRzqfbl8j7FcHXepfg kQ== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2y4j5k75w6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 15 Feb 2020 00:35:52 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 15 Feb 2020 00:35:50 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sat, 15 Feb 2020 00:35:50 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UzpRUayJx/bov0AfYiRskZCL7Lkj8O4+33buhxJtlBl33/dcM4siZ8jKpjhqTai513slOo+1LZlHSgjx/+s0Dh/r3PZTItGtuFyk69NCIGPkx7bkpv5hn2mjYn6K1WJbQlIKCC2J1ETjG2JAd5VZdIizCqN6PYPagksycOxnFLzGOsx8ojBixLbyQCmZr0HhRQRH62zlbs54WO8Pinx+/jOVQ4/XaZP5T7fhxHoYwmwtYB11ijA/XtaUUoro8BDMyD/uKaJzAr799W6mZULu/KoSIdJXp7txDnn5VBmZHdKOf5XgKhZLFKuTy+OzJCzYyAf5DCbKtmO7tMWnITAFlw== 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-SenderADCheck; bh=eqF8NSIbV/kpREyXPVrGgUtpoCVyfqi+5xPPFNSgojk=; b=jx7YDV+vJLt/ZZGO3Oqi7weVNvzw1W3xgcM1dGKdlMSbsl49zQS+/XSLsi6WNC8W1JquUfx8IgajGcZFs05KprQ8vBgf0WeHvdef4GcJMdPnibRx4lvusk6eNUTWD84/aCc1jhGv3RB9XL7J1srfPasrs9W+zeVXAsx8XW1dwl9Ncrjqme0gx0gaIoNHG2mY7ZeqY/8gIegEuB1PEpxNz0TDCXzFpEGpLJenhUF689h86tweewPCo/VXOvqnbS9SclmPlEDxMDTuzcyuU2limtk4sLEjYmCn7NFcsuBdUEQ7ng7zXkTD4zIBqj2tsTeByzg/JcnpsTuxiCvCXhqMsw== 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=eqF8NSIbV/kpREyXPVrGgUtpoCVyfqi+5xPPFNSgojk=; b=OCiJSTYZP4GV1usxO0QnVXr1a74QdQt7dfmY2u2Jp5R3LqQ6IgPRZ3cUCbQtdWmGxufcC2W6v690bjFZ9x4ep6Cg0/gUJQANnnwpwIqdBhXS01l4EN1HWU2GTY2FoSG+RwJLU4r8zJcVp6V+ti09amDEYnanxkKmrh4JvlnrVFU= Received: from MN2PR18MB2848.namprd18.prod.outlook.com (20.179.20.19) by MN2PR18MB3199.namprd18.prod.outlook.com (10.255.236.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Sat, 15 Feb 2020 08:35:49 +0000 Received: from MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::6de0:6ead:9fc:5beb]) by MN2PR18MB2848.namprd18.prod.outlook.com ([fe80::6de0:6ead:9fc:5beb%3]) with mapi id 15.20.2729.028; Sat, 15 Feb 2020 08:35:48 +0000 From: Harman Kalra To: Jerin Jacob , Nithin Dabilpuram , Vamsi Attunuru CC: , Harman Kalra , Date: Sat, 15 Feb 2020 14:05:03 +0530 Message-ID: <1581755704-15546-1-git-send-email-hkalra@marvell.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: BMXPR01CA0024.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::34) To MN2PR18MB2848.namprd18.prod.outlook.com (2603:10b6:208:38::19) MIME-Version: 1.0 Received: from hkarlara-OptiPlex-3046.marvell.com (115.113.156.2) by BMXPR01CA0024.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2729.25 via Frontend Transport; Sat, 15 Feb 2020 08:35:46 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [115.113.156.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a8a7be1-09fd-4fa3-d339-08d7b1f20e99 X-MS-TrafficTypeDiagnostic: MN2PR18MB3199: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 03142412E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(136003)(346002)(396003)(366004)(189003)(199004)(8676002)(956004)(81166006)(2616005)(478600001)(66556008)(4326008)(81156014)(66476007)(8936002)(16526019)(66946007)(52116002)(7696005)(55236004)(186003)(26005)(6636002)(6486002)(86362001)(450100002)(6666004)(36756003)(4744005)(5660300002)(110136005)(316002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB3199; H:MN2PR18MB2848.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p+XNUR8X3yO6l++4SvXHrj8YnVMAS2TQO/wqsYOAtW5zcm81y2++w+9jpYDjR3BLy2n/Xj0+k8cnHKPna+gYVQt92FjM0Pjx85oAY8HKUFrhXgrrntVxBIzBvJqWoVZfIYjsBlbaTmeckrC57hiotcIksTDSP6x6bUzM7VfUKUQakJWJ+B5LN+5DTVQb/N8ZrWoSdTlsJQHAqufebT8UaM2vh9zVx2/WEWB0gIl/ql0w0uTLJ2zP/adsDtHjhc3jzwK5LkckYAPvjn9n0mFf52uXNWHIuKpHDWW9dGKzxkiZvmRko96NXa3HLkdqfb96590lAgmGAjpdNP0PhBs3GtO8NHTJUotCEKNkj/lr3TU4L+iOeJ0XBZGHEKFsADkm+eLSJV0+e0Ogx66QKGPHJPKNIdVZedThh3sBMez2MqKJ1qXz8minBBgD4Ib6453X X-MS-Exchange-AntiSpam-MessageData: EQRtKS9M1WqYJ01wg5qxXPLS/DnPeE5ZPWybaliwUAOG6/j9Ll4RosviHNqcf58Z5pPXemrlXF7UfUECo2epLCmGx5zmXrGFACunykGA6ikfArZNhxxR4VEzJmDL7LcDv3P6Dfgr0flv6arcSsJqmA== X-MS-Exchange-CrossTenant-Network-Message-Id: 6a8a7be1-09fd-4fa3-d339-08d7b1f20e99 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2020 08:35:48.5946 (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: QpTP/75dxTFhW9Ph3PMc/ijiwwRn/eS6HE0vKntNC7Swgd1cn0UZP+7rgIdnhp+odhat325/NUxerFVaQxuLgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3199 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-15_02:2020-02-14, 2020-02-15 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: fix ptp functionality X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" PTP functionality has been broken after a change in kernel where enum npc_kpu_lc_ltype is change to allow adjustment of LTYPE_MASK to detect all types of IP headers. Syncing the required changes in DPDK to fix the issue. Fixes: b5dc3140448e ("net/octeontx2: support base PTP") Cc: stable@dpdk.org Signed-off-by: Harman Kalra --- drivers/common/octeontx2/hw/otx2_npc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/octeontx2/hw/otx2_npc.h b/drivers/common/octeontx2/hw/otx2_npc.h index a0536e0ae..3dfc137a3 100644 --- a/drivers/common/octeontx2/hw/otx2_npc.h +++ b/drivers/common/octeontx2/hw/otx2_npc.h @@ -201,7 +201,8 @@ enum npc_kpu_lb_ltype { }; enum npc_kpu_lc_ltype { - NPC_LT_LC_IP = 1, + NPC_LT_LC_PTP = 1, + NPC_LT_LC_IP, NPC_LT_LC_IP_OPT, NPC_LT_LC_IP6, NPC_LT_LC_IP6_EXT, @@ -209,7 +210,6 @@ enum npc_kpu_lc_ltype { NPC_LT_LC_RARP, NPC_LT_LC_MPLS, NPC_LT_LC_NSH, - NPC_LT_LC_PTP, NPC_LT_LC_FCOE, }; -- 2.18.0