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 C5CDAC433FE for ; Fri, 17 Dec 2021 23:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231436AbhLQXtn (ORCPT ); Fri, 17 Dec 2021 18:49:43 -0500 Received: from us-smtp-delivery-160.mimecast.com ([170.10.133.160]:39656 "EHLO us-smtp-delivery-160.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbhLQXtm (ORCPT ); Fri, 17 Dec 2021 18:49:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qsc.com; s=mimecast20190503; t=1639784981; 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=HxeHTwTRX6GR9g93sq/08o7pG1Yysfh7Amc7KYPalLY=; b=h0KYytkfrXB3cOl8haChX3iVIVh3RtwaAIqgaeJOnTyhmqwNSH2Eg7gx2xjztd4s97QFRa LBW8FY+iLwwv1ecGmUScHKu7E2fTWeYiuCWlFSaTYDcEkPgUBkZ0J0CfZ0+T13tBIoXoYe lEgFhrfUsDn+uyx5N0wwBFamb7Hk5lw= 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-452-HxOZeFjhPU2GRUlLJ6X__A-1; Fri, 17 Dec 2021 18:49:39 -0500 X-MC-Unique: HxOZeFjhPU2GRUlLJ6X__A-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 15:49:37 -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 15:49:37 -0800 From: James McLaughlin To: , , , CC: , , , , James McLaughlin Subject: [PATCH net v3] igc: Fix TX timestamp support for non-MSI-X platforms Date: Fri, 17 Dec 2021 16:49:33 -0700 Message-ID: <20211217234933.740942-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. Fixes: 2c344ae24501 ("igc: Add support for TX timestamping") Signed-off-by: James McLaughlin Reviewed-by: Vinicius Costa Gomes --- Still same work email client issues. Apologies, mis-titled it again. v2->v3 fixed title 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