Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68245C433EF for ; Fri, 17 Dec 2021 20:58:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240935AbhLQU6f (ORCPT ); Fri, 17 Dec 2021 15:58:35 -0500 Received: from us-smtp-delivery-160.mimecast.com ([170.10.133.160]:21132 "EHLO us-smtp-delivery-160.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237096AbhLQU6e (ORCPT ); Fri, 17 Dec 2021 15:58:34 -0500 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Fri, 17 Dec 2021 15:58:34 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qsc.com; s=mimecast20190503; t=1639774713; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=slIJRz7wIeJV2ZUwXabputEjF6L/iFoFGOuxjfaTsTI=; b=S3Un1HkMMnzEPFfKoMSkmzaM7mzk2uigBC+oc9hzfnObaQbldigzjNn4mVN4I7iKm/JczI TfcVPNZQo6SncQ9yS0kCacjZprJYRiv6DokOZ5GEJrTbcHLeRTF5s2yWzH8qZCB8vjXonz iifrkiX2n//VSEbXZp2FQMhHxspKPDM= Received: from 1uslvexch01.qscaudio.com (209.170.222.241 [209.170.222.241]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id us-mta-475-X4jfqagqPZ6Mth2pWHaIjg-1; Fri, 17 Dec 2021 15:52:24 -0500 X-MC-Unique: X4jfqagqPZ6Mth2pWHaIjg-1 Received: from 1uslvexch01.qscaudio.com (10.105.30.125) by 1uslvexch01.qscaudio.com (10.105.30.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 17 Dec 2021 12:52:22 -0800 Received: from james-3700x.qscaudio.com (10.104.74.41) by smtp-relay.qsc.com (10.105.30.125) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 17 Dec 2021 12:52:22 -0800 From: James McLaughlin To: , , , CC: , , , , James McLaughlin Subject: [PATCH] igc: updated TX timestamp support for non-MSI-X platforms Date: Fri, 17 Dec 2021 13:52:09 -0700 Message-ID: <20211217205209.723782-1-james.mclaughlin@qsc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA60A255 smtp.mailfrom=james.mclaughlin@qsc.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: qsc.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Time synchronization was not properly enabled on non-MSI-X platforms. Signed-off-by: James McLaughlin Reviewed-by: Vinicius Costa Gomes --- drivers/net/ethernet/intel/igc/igc_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethern= et/intel/igc/igc_main.c index 8e448288ee26..d28a80a00953 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -5467,6 +5467,9 @@ static irqreturn_t igc_intr_msi(int irq, void *data) =09=09=09mod_timer(&adapter->watchdog_timer, jiffies + 1); =09} =20 +=09if (icr & IGC_ICR_TS) +=09=09igc_tsync_interrupt(adapter); + =09napi_schedule(&q_vector->napi); =20 =09return IRQ_HANDLED; @@ -5510,6 +5513,9 @@ static irqreturn_t igc_intr(int irq, void *data) =09=09=09mod_timer(&adapter->watchdog_timer, jiffies + 1); =09} =20 +=09if (icr & IGC_ICR_TS) +=09=09igc_tsync_interrupt(adapter); + =09napi_schedule(&q_vector->napi); =20 =09return IRQ_HANDLED; --=20 2.25.1