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 D987AA0553; Mon, 17 Feb 2020 16:07:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 827C51D9C3; Mon, 17 Feb 2020 16:07:06 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id D471D1C22A; Mon, 17 Feb 2020 16:07:05 +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 01HF6sa5000459; Mon, 17 Feb 2020 07:07:05 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=pfpt0818; bh=jcfqPmFXEP4QxaEIgC+FYgBNkc9fDo+m3aRqH/q1yYw=; b=wMhERG4kO42rhWeCQ1ZdCsjIdn3cc18NV5igFBbA255T+B+ItsWYTvZXd50iAcVsSVJ1 PBWKmBCGY2NdYzFltbhz79/d/jYW47mSCxguhoGM4E0WO+RSS66mClEmjMemo1cEgb11 spw8rD0eFtIFLcwPTgGFv+My0o2RC5NYh5lKUnFfAHT9VZWaEuzEWy1+nNnK0cREw76j PHIiRwrqysgm5cSwJ62ASY7vzLJ87UA3+G4i7GZTxkrFrDPY3TYMP4ilrhLImO+7HBXV /d27Qai3tVspQnxTOaeIFYkNZfIwDLWoRvXz4wZ8KLsHN9ysXTYJGW/4usp7n7MyvsYp 6g== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2y6h1sydux-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 17 Feb 2020 07:07:05 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 17 Feb 2020 07:07:02 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.105) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 17 Feb 2020 07:07:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cgCgDwZNZV5B6utlgFarcpOJ6YU/O5AA66oDslO2I++CznB4OckegqmXc7oC8Sgy80SFTWj7G0GGJH/eA260L5BkFEqrPUOBTQ0KpO5VL1jYrZT373q8ewQTk/rqNbzOrLUJzJ3jtiUWg7cSMq10D3ojoa9yccTBxMJsq57hTBhd0odv4jCU6gI1WOlhAjV04eWLHT3eTuxP1ibFXc/ehvOoxCHl18IZvgRO95CgLo+Nxl0Fl0mA72/Gzs3J4IhHQeFfJYgsK39zVYLIeYJY2nAhYePsH/sEy+EvTvO2lIRDLOMEeJgvIdn7pUkvr7eHIt81QNzfdgAzBLGxnYhs6w== 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=jcfqPmFXEP4QxaEIgC+FYgBNkc9fDo+m3aRqH/q1yYw=; b=QThEncq+FTXtTcp49kWIYNtD3fVcju6o0dzhELZQiU1z4qgZOZXBzPjl9r7i+g+inC/ta7/I6SQAYMoWdFZ0Qn846ZLVoS7PBEI9rgNyJmuTKiv3fBwZsHGip8c13NArczt3UcKquyjpAzNte8K/3UwEUBZyNG8s50B2AVZy1fKN+AxLdM7WVdmNtgKD9Cs1y3BbRrUzzmQLIvIjrk3Y39DPvdX0uQxAOoR/HF0bStbSmygWwMCm1QEzbvxVI2Iy0dufz+QHpkao+ew/Kmwk1Xs3pIvyJZ4vzGSs+yyzOHjHi6pfiiYuSSF3fUSY+XIxM4QJIWMf+tSx7mCWWbFLAw== 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=jcfqPmFXEP4QxaEIgC+FYgBNkc9fDo+m3aRqH/q1yYw=; b=pxkK4hsyXi+TuL6ccJi8QA+5gYc2KHTYpwTfnXJ0ArbsqDlU1XxfnMM/UWedM/rIW7sQdXtvYrLKHWKpKKNzN1Eit5/fi7lPdGFSIgfMKSGDjvbSLfg83CjtP6+OYDCLq6vpU65bJWAFEklpJhf5rILKfMQkh0ddnD1AW2ijUMY= Received: from MN2PR18MB2848.namprd18.prod.outlook.com (20.179.20.19) by MN2PR18MB2493.namprd18.prod.outlook.com (20.179.81.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.25; Mon, 17 Feb 2020 15:06:59 +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.032; Mon, 17 Feb 2020 15:06:58 +0000 Date: Mon, 17 Feb 2020 20:36:49 +0530 From: Harman Kalra To: Ferruh Yigit CC: Jerin Jacob , Vamsi Attunuru , , Message-ID: <20200217150648.GB23753@outlook.office365.com> References: <1581755704-15546-1-git-send-email-hkalra@marvell.com> <194bbbb5-7af3-2bb8-ef0b-e2a571a58efe@intel.com> <20200217143437.GA23753@outlook.office365.com> <842f21a6-8043-0608-0428-98ca07930cbf@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <842f21a6-8043-0608-0428-98ca07930cbf@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-ClientProxiedBy: PN1PR0101CA0049.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::11) To MN2PR18MB2848.namprd18.prod.outlook.com (2603:10b6:208:38::19) MIME-Version: 1.0 Received: from outlook.office365.com (115.113.156.2) by PN1PR0101CA0049.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.24 via Frontend Transport; Mon, 17 Feb 2020 15:06:57 +0000 X-Originating-IP: [115.113.156.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf76dccb-f682-4645-e018-08d7b3bb08e1 X-MS-TrafficTypeDiagnostic: MN2PR18MB2493: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 0316567485 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(346002)(376002)(366004)(136003)(199004)(189003)(81166006)(8676002)(81156014)(478600001)(8936002)(66476007)(6666004)(2906002)(966005)(66946007)(66556008)(86362001)(956004)(1076003)(55016002)(5660300002)(9686003)(4326008)(7696005)(52116002)(6916009)(33656002)(53546011)(6506007)(26005)(186003)(316002)(54906003)(16526019)(55236004); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2493; H:MN2PR18MB2848.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: u+h2MqT/FFqjlNQUe/FBJ7q30aHqR2DbGnAkeq/Pf7DP07n3vaTFVwdQvZWSD6VO4M89+P3DRzD/990t+gW0g9mXjX558yRY4ROabZydm1q2RnB0swKZr1zWdnWvD29SZByK/n6QQOumTqiiykotnhCrA6R7z4PgbZmbnv9NBjLTc4+dlfT+RM3pbMYScGvoxCwX4L876Ko10rGOL7VsN7yB9VN8KlL6+nQhzSyABBK4ye9QT2eYc9x/ngyddTqyb6Hnj2r3+HgFxpBOzTRKhV9pVAdy8ZjYtH5RvRzy9h1uhEaBmfqvlD/5cWGgf9aIwKXfAjnN25qDC2xe7WVPqQ7tuvblAWywhbrFlEd7lXeAf7cf+91jpzMYrhCRg9BzZTSimn3BRUA5PnFBgeyCMz6AaArEfM8771nmtEOWYSD+bvf5Sna3SBayxKGEDjNwS0ZbWyJspmaakDwTvAX1tCo8h2EXC/QL+9CnfMBw5EwrXV15ug6tsRSHazFdmvtZJcoKBzJja3gfbfcRQACMsA== X-MS-Exchange-AntiSpam-MessageData: +tzd+6nPz2Cif1Z02jx0ea4rl1hqVmUcDKifmNKuBsc8jHXKJ7LJNU5ecNJpTZ6o3Oc4brwMGmbGAItuIbq4W1T9VN7gGVUVE5jseovVmswQG6IYIdLPGhe7argGnzK0DWZtUxKIMAvjF18WsJWjDw== X-MS-Exchange-CrossTenant-Network-Message-Id: cf76dccb-f682-4645-e018-08d7b3bb08e1 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2020 15:06:58.7820 (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: FOAQCsVSvKMPXuvUnaxxgZB+Cb6wI2ovd6HCwtyxU03148BPzeNIn2AYz/CUamudAyVjRo5gAcJItzgIBGQZmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2493 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-02-17_10:2020-02-17, 2020-02-17 signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: [dpdk-stable] [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" On Mon, Feb 17, 2020 at 02:54:13PM +0000, Ferruh Yigit wrote: > On 2/17/2020 2:35 PM, Harman Kalra wrote: > > On Mon, Feb 17, 2020 at 01:21:13PM +0000, Ferruh Yigit wrote: > >> External Email > >> > >> ---------------------------------------------------------------------- > >> On 2/15/2020 8:35 AM, Harman Kalra wrote: > >>> 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. > >> > >> Hi Harman, > >> > >> Can you please provide references for, > >> - What is the kernel commit causing the mentioned change? > >> - After this change which version of the kernel supported by the PMD? > > > > Hi Ferruh > > The kernel change I was refering to was in our internel kernel repo > > and those kernel changes have not been upstreamed yet. Currently its part > > of our marvell SDK version SDK-10.3.1.x. > > Got it, what is the dependency of the PMD to the Linux kernel? And does the PMD > works with upstream kernels? Yes, for basic functionality PMD works fine with upstreamed kernel but for supporting some advanced features like PTP, kernel changes are yet to be upstreamed. Our kernel driver for octeontx2 PMD: https://github.com/torvalds/linux/tree/master/drivers/net/ethernet/marvell/octeontx2/af Kernel upstreaming activity is not in same pace as DPDK. Thanks Harman > > > > > Thanks > > Harman > > > >> > >>> > >>> 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, > >>> }; > >>> > >>> > >> >