From patchwork Tue Apr 16 08:46:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudarsana Reddy Kalluru X-Patchwork-Id: 1086135 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=marvell.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44jzWB4Z4yz9s3l for ; Tue, 16 Apr 2019 18:46:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728807AbfDPIqo (ORCPT ); Tue, 16 Apr 2019 04:46:44 -0400 Received: from mail-eopbgr690063.outbound.protection.outlook.com ([40.107.69.63]:33863 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726753AbfDPIqo (ORCPT ); Tue, 16 Apr 2019 04:46:44 -0400 Received: from CY1PR07CA0029.namprd07.prod.outlook.com (2a01:111:e400:c60a::39) by BN4PR07MB2164.namprd07.prod.outlook.com (2a01:111:e400:59c6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.11; Tue, 16 Apr 2019 08:46:41 +0000 Received: from DM3NAM05FT019.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::204) by CY1PR07CA0029.outlook.office365.com (2a01:111:e400:c60a::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.15 via Frontend Transport; Tue, 16 Apr 2019 08:46:40 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT019.mail.protection.outlook.com (10.152.98.128) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1792.7 via Frontend Transport; Tue, 16 Apr 2019 08:46:40 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Tue, 16 Apr 2019 01:46:39 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x3G8kcqJ016935; Tue, 16 Apr 2019 01:46:38 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x3G8kb8Z016934; Tue, 16 Apr 2019 01:46:37 -0700 From: Sudarsana Reddy Kalluru To: , CC: Subject: [PATCH net-next 0/2] bnx2x: Support for timestamping in P2P mode. Date: Tue, 16 Apr 2019 01:46:11 -0700 Message-ID: <20190416084613.16897-1-skalluru@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131998780006479578; (abac79dc-c90b-41ba-8033-08d666125e47); (abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(346002)(136003)(2980300002)(1110001)(339900001)(189003)(199004)(126002)(48376002)(336012)(26826003)(50466002)(498600001)(69596002)(86362001)(5660300002)(476003)(2616005)(87636003)(97736004)(76130400001)(4744005)(81156014)(8676002)(81166006)(85426001)(26005)(36756003)(80596001)(8936002)(68736007)(50226002)(1076003)(486006)(305945005)(2906002)(6636002)(6666004)(356004)(4326008)(47776003)(53936002)(110136005)(105606002)(106466001)(36906005)(316002)(42186006)(16586007)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR07MB2164; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3bcc54a7-c25a-4432-b77b-08d6c2480b83 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(5600140)(711020)(4605104)(2017052603328); SRVR:BN4PR07MB2164; X-MS-TrafficTypeDiagnostic: BN4PR07MB2164: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 000947967F X-Microsoft-Antispam-Message-Info: H689+PNq95PArg8cxGQbDnCiVuecHrFy5wyZ48eOuuqlS4Be4n77Tfvwuy/RrbHt0UsuIRpjm2ycaUWq5rhRW1ysdIh/nQgbKMToO22pXzBwk1xAzKmDmF2Xi5EnqvpoR51A7vrKcvtG8xpCxwwFbM+62jwXllWwwMOG0e+AOM6jiv3mWyqlE5zKQcvFZOU16O7helzThRVEzK6qcKrzIAc3j/VUvimA8+yVw5lT6KO9m+ibBAQgmUg9raXxrJLEBDjIiGLZH9j8KsmQpSkdgWaiCqkHWR5xUgUGL+2VRS5L+e3DtahFAbSz54ceGhQF16n8IuprRqoVxOhrufJzRXgmm69zND+bTpdR3tYnGa3ggFqowhJ1vftGyut55QCNeXd3tjMxB9zEJLeetlWAwg4onjPzaR/B4Yys50yk3cs= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2019 08:46:40.2686 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3bcc54a7-c25a-4432-b77b-08d6c2480b83 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[199.233.58.38]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2164 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The patch series adds driver support for timestamping the ptp packets in peer-delay (P2P) mode. - Patch (1) performs the code cleanup. - Patch (2) adds the required implementation. Please consider applying it 'net-next' tree. Sudarsana Reddy Kalluru (2): bnx2x: Replace magic numbers with macro definitions. bnx2x: Add support for detection of P2P event packets. drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 52 +++++++++++++++--------- 1 file changed, 32 insertions(+), 20 deletions(-)