From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B97C355031; Tue, 6 Jan 2026 17:49:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767721745; cv=none; b=pMF9KAEz4IHXB5B8+9JjSKw9QOE06FX7/UH5cGTUGImlWE75wDAoRdVmhXNiFrd81cTCVM14htv3cB9HDR4hEgnox/7V6tEIVnmMjN8zbCPEDCEz4R/W4hOGludRqS+WCrlMg9irsTBae4jag9kyPKzw2BU2hc1VkNy+LgayV6U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767721745; c=relaxed/simple; bh=zo1aRdCUIzUn0Izi1lidpH5/TTVesAB7z51nTimXJ3A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EyTyUjYIbjWtRZijrzqxTzt7boQsyUwEV9GabFSYOWAGFDQ4QplOHL0wIo/0ltRacsrIdRbM8mJmnM95juULo4KmuX6uksy4d8oFQSJXeG6fkDLyIrnV/citKDnsSHCy6Dyb8W9Ly9nfWag/q9GgailU5zMDsXU7DxDXLwlURJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lpxJ+u3Y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lpxJ+u3Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFF8DC116C6; Tue, 6 Jan 2026 17:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767721745; bh=zo1aRdCUIzUn0Izi1lidpH5/TTVesAB7z51nTimXJ3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lpxJ+u3YK6g2T1CJcPPXp46xd/ppqKiAYV9vdbwlsAS9CJ6snJY4HAMoVeUpI3ULn B40SVljWnzeAgSba5Dy9QruyHWWQhIquG84BOI24TTFh1ayq7g1CBTZvzxNu9hrACO +b8IHiUjVQGamJN9V9kL1EZiSJGFPByUSnL3aYdU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Grzegorz Nitka , Jacob Keller , Aleksandr Loktionov , Przemyslaw Korba , Tony Nguyen , Sasha Levin , Rinitha S Subject: [PATCH 6.18 017/312] i40e: fix scheduling in set_rx_mode Date: Tue, 6 Jan 2026 18:01:31 +0100 Message-ID: <20260106170548.477893203@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260106170547.832845344@linuxfoundation.org> References: <20260106170547.832845344@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Przemyslaw Korba [ Upstream commit be43abc5514167cc129a8d8e9727b89b8e1d9719 ] Add service task schedule to set_rx_mode. In some cases there are error messages printed out in PTP application (ptp4l): ptp4l[13848.762]: port 1 (ens2f3np3): received SYNC without timestamp ptp4l[13848.825]: port 1 (ens2f3np3): received SYNC without timestamp ptp4l[13848.887]: port 1 (ens2f3np3): received SYNC without timestamp This happens when service task would not run immediately after set_rx_mode, and we need it for setup tasks. This service task checks, if PTP RX packets are hung in firmware, and propagate correct settings such as multicast address for IEEE 1588 Precision Time Protocol. RX timestamping depends on some of these filters set. Bug happens only with high PTP packets frequency incoming, and not every run since sometimes service task is being ran from a different place immediately after starting ptp4l. Fixes: 0e4425ed641f ("i40e: fix: do not sleep in netdev_ops") Reviewed-by: Grzegorz Nitka Reviewed-by: Jacob Keller Reviewed-by: Aleksandr Loktionov Signed-off-by: Przemyslaw Korba Tested-by: Rinitha S (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/i40e/i40e_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 50be0a60ae13..07d32f2586c8 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -2234,6 +2234,7 @@ static void i40e_set_rx_mode(struct net_device *netdev) vsi->flags |= I40E_VSI_FLAG_FILTER_CHANGED; set_bit(__I40E_MACVLAN_SYNC_PENDING, vsi->back->state); } + i40e_service_event_schedule(vsi->back); } /** -- 2.51.0