Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2283078imm; Mon, 28 May 2018 05:21:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqblGVBJZxvobGtyLAmXSast9g71YdUTeAaw0RpUEEe/55WnPe8k+OSAD/oNnga9q1rFEX/ X-Received: by 2002:a17:902:8a94:: with SMTP id p20-v6mr12795081plo.258.1527510084508; Mon, 28 May 2018 05:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527510084; cv=none; d=google.com; s=arc-20160816; b=QGzNrvq+5g+Y6nUuRWYIQaV6OtNrnoGxJP0U1T/JKBFrwtkwhW1WSpeuV/dS1N3l7+ TKhuN6zgYglrGF6wR5t/nr7AqYDurlfgJ7Hh/xxw1jIZpQg0rRIF4mWr1Zrbk6RHSeCi 1I/8QEuOUTS1q99X6sSyvy4RPLjbsceFO6wnvrKMsq/mNkXyBrVrhH7tSb8HYx2RXWOx VL7TNyH2qAO2kkVAEHP/K7892+g3+wVv7TURFPpQhjod5I+P3BQ8xtpkfGyCqAVDSL/0 hgmuOAsrzhaeWNo/h/Q2nvdBWdpjSp/uMt0/CwC1RWYvQY07ZPZ6lH1Gyf9D/FcffNA3 QkGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Rdawh198MauEjNrPoQ5N0jOy1M/SLmla3QxLcXqunjg=; b=BuS6HydyWa3aZxTGf8s2Ef915pzon1k0cCPV6/ZLTUv1hsop45DJPE0ISso7OSF+JB xaNUmY+usiGNXKa3lTj0PYBerpczVXYK56wM7dsu9VHQg5wYIGHDN4K+17UiP1jRvJP6 HkIcDnpqy+aVbeMZVvRhC93c8j6oaHBzeNdyqPkGgCiLwaLQsHpyRwCB95LFHPTx/hib fi/YyPNoRLYCtqQ6oSLGYPwTPOG3vxzDwaBPj36GloEYMEooP9yLRNOuGYHWVFcurC5u eG1bGz18Z2++XEAfksE3KBAD9wB6LtOt642SfOfquxf2WJiRjX/CIcwp1OAta5j1RvUh OwuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GpPjxgOT; 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 b3-v6si29782708plc.14.2018.05.28.05.21.10; Mon, 28 May 2018 05:21:24 -0700 (PDT) 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=GpPjxgOT; 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 S1422832AbeE1MUa (ORCPT + 99 others); Mon, 28 May 2018 08:20:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422794AbeE1LCY (ORCPT ); Mon, 28 May 2018 07:02:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 0A1652075C; Mon, 28 May 2018 11:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527505343; bh=HXsDvQHw1uQCg3YQHYoWk7PbDmjOR3FQRPi9SN7e3As=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GpPjxgOTKmUI9Yb7MP1vfjeGYeHzXVknZoOQQzbNamdDwQa1ouvrKGqoRvrKIT7m3 OWQtYW2R9opzizION419bK61UFpW16ify2spXzhIH4Rysn5BjS5wIazhyUiyzay6g8 C4cQqOnQSy36TkAEaiPWJlG9ih7lcKoYXEY7UL0Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jacob Keller , Andrew Bowers , Jeff Kirsher , Sasha Levin Subject: [PATCH 4.14 464/496] ixgbe: prevent ptp_rx_hang from running when in FILTER_ALL mode Date: Mon, 28 May 2018 12:04:09 +0200 Message-Id: <20180528100339.463355716@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jacob Keller [ Upstream commit 6704a3abf4cf4181a1ee64f5db4969347b88ca1d ] On hardware which supports timestamping all packets, the timestamps are recorded in the packet buffer, and the driver no longer uses or reads the registers. This makes the logic for checking and clearing Rx timestamp hangs meaningless. If we run the ixgbe_ptp_rx_hang() function in this case, then the driver will continuously spam the log output with "Clearing Rx timestamp hang". These messages are spurious, and confusing to end users. The original code in commit a9763f3cb54c ("ixgbe: Update PTP to support X550EM_x devices", 2015-12-03) did have a flag PTP_RX_TIMESTAMP_IN_REGISTER which was intended to be used to avoid the Rx timestamp hang check, however it did not actually check the flag before calling the function. Do so now in order to stop the checks and prevent the spurious log messages. Fixes: a9763f3cb54c ("ixgbe: Update PTP to support X550EM_x devices", 2015-12-03) Signed-off-by: Jacob Keller Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -7658,7 +7658,8 @@ static void ixgbe_service_task(struct wo if (test_bit(__IXGBE_PTP_RUNNING, &adapter->state)) { ixgbe_ptp_overflow_check(adapter); - ixgbe_ptp_rx_hang(adapter); + if (adapter->flags & IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER) + ixgbe_ptp_rx_hang(adapter); ixgbe_ptp_tx_hang(adapter); }