Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3696263ybv; Mon, 10 Feb 2020 04:53:44 -0800 (PST) X-Google-Smtp-Source: APXvYqywtu221vNP2Oc5/NPQ7M4hCmTG4fiKe+t7d5CPd3YGAb7Ma5eyXieT85yYfCQYw4Jgqwdr X-Received: by 2002:a54:4895:: with SMTP id r21mr733695oic.107.1581339223998; Mon, 10 Feb 2020 04:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339223; cv=none; d=google.com; s=arc-20160816; b=PdahU139hTDxKvPERW0fyCC24MDsBFoT9dhej5mntkcX8aBDhp5G5KY7KqNsJKKwhw EAX8Kr6U6Xx3jQPFwXaIXDX9JMLXPQKylxhWKqkdlFgF5bny3B1kbkatrwBk6gZ4EYLO 2b3AxlkIGOaUAdlmLkbdvonmkmq8fmBo+ubxXC9BiVy0ktmG9JrEVDiOexqWELirP9Mc bQf1XAx43Ekjdzmrr5rnzoBhm5v0LQv8t9kmbP0nXx914NXfbLt9izGS/KNABfp5iKP7 EBWdiJk1ZUG0rvYqoOQRvO6mp1yjIySZQAfYimkP1FPQxZLdCDPhWGiTE7eD5b+hRoNu P83w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=51aJ8pA2mmIaroiwG54sFWcqoomdju6SH6b8Tng368U=; b=YFHTShP2Zl3PRnSOT3CNilED07pBcQbm5OBaueFFT7VXJlTw+jLHcO4sswmu4x3Vhr yql3fvsz+2lQ+o4hpVmzzMFPGpcKJBWAqKxt0W9w3fJwWgOa6DKO5eNSovg7schAH8gF h+EsOBQ5upN1d6nGK7yR9ugcBs4mL0Bj+7lAsoLaW7bbXewCyv9RqK1hAw4Z9MFJIQWp bhyRseAWMPkR1eYBdNjOFwwCJYCkiQdvXZGLyHqP1/Eab/ouNt+D4ErnSEdrYnxO9pe/ 3bZnCNe3nPo8y5qmYlUXZaLKhD4hA13CVFKNjZaMTmZXbkR+ONu9xSbtwzyVYNayhtP2 0KtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KHYdxsXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n25si120878oij.175.2020.02.10.04.53.32; Mon, 10 Feb 2020 04:53:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KHYdxsXK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727884AbgBJMwc (ORCPT + 99 others); Mon, 10 Feb 2020 07:52:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:46588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730228AbgBJMmV (ORCPT ); Mon, 10 Feb 2020 07:42:21 -0500 Received: from localhost (unknown [209.37.97.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3F56F2051A; Mon, 10 Feb 2020 12:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338540; bh=mXgJDsvXcMB4V3q6nk9hNA+TUE92NqmQrxhg8xXFQ8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KHYdxsXKcPZS0A2Al97nMu3MZviqRzp0doY0YCXllQuCmrfwUl5Z7qo0wSuC5/ypE mPhAtvJlo0AeAAkrMOwZ3TbBqFavhvGs/WpK37zZ4Ngt4/g0siDYC32BvRIPI7HBna XjrW2dEVUmHdXYFyPtMEPvu2p2uYMLKirYunKeeQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sudarsana Reddy Kalluru , Ariel Elior , "David S. Miller" Subject: [PATCH 5.5 341/367] qed: Fix timestamping issue for L2 unicast ptp packets. Date: Mon, 10 Feb 2020 04:34:14 -0800 Message-Id: <20200210122454.128386008@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sudarsana Reddy Kalluru [ Upstream commit 0202d293c2faecba791ba4afc5aec086249c393d ] commit cedeac9df4b8 ("qed: Add support for Timestamping the unicast PTP packets.") handles the timestamping of L4 ptp packets only. This patch adds driver changes to detect/timestamp both L2/L4 unicast PTP packets. Fixes: cedeac9df4b8 ("qed: Add support for Timestamping the unicast PTP packets.") Signed-off-by: Sudarsana Reddy Kalluru Signed-off-by: Ariel Elior Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/qlogic/qed/qed_ptp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/qlogic/qed/qed_ptp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_ptp.c @@ -44,8 +44,8 @@ /* Add/subtract the Adjustment_Value when making a Drift adjustment */ #define QED_DRIFT_CNTR_DIRECTION_SHIFT 31 #define QED_TIMESTAMP_MASK BIT(16) -/* Param mask for Hardware to detect/timestamp the unicast PTP packets */ -#define QED_PTP_UCAST_PARAM_MASK 0xF +/* Param mask for Hardware to detect/timestamp the L2/L4 unicast PTP packets */ +#define QED_PTP_UCAST_PARAM_MASK 0x70F static enum qed_resc_lock qed_ptcdev_to_resc(struct qed_hwfn *p_hwfn) {