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 70B88328B58; Fri, 9 Jan 2026 12:12:06 +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=1767960726; cv=none; b=XZleyGKU0psz8WlvtUsq/aN05ayXnQGimFNgn6c6KI4v8Kas/9LhKe7YKNz/i2wdsdD+LA+cuOW+A1cRmN+CPbv0HVYPCj+Jr3terfafFYD8HWvNsJ8Mta92oTVX3h9WgBNvT/lffVtrRkJw5jzfL3N0tSjRgCAsDtVL3GHus48= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767960726; c=relaxed/simple; bh=tYOWv/FSLH+RD5NAGxxeagDijh810/67xNIDSMMLsSA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LDkmkknsbe5ukUccpO6b2diPvhZNyReM9r/Sh17LxQljqEwOIBRtYymIT5GlLJbaNT7A/8JABLMQ/4tF0kFMiHEY27AtgtDIUjBeTC/KA/tyDbDzqKYFpjcO9ytF23rEkp2/qAtspiRG9fBA5zZFM7ihb4P2bTocdbCFvZF+v3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PvcZ34M1; 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="PvcZ34M1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1AEEC4CEF1; Fri, 9 Jan 2026 12:12:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767960726; bh=tYOWv/FSLH+RD5NAGxxeagDijh810/67xNIDSMMLsSA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PvcZ34M1S1CmrTxA/fBGdILLA6l5OwzNhNxkBSE088VwRDd8wgMeeXpgZCcg9HKMP vro6M5Tf0zHDXbeuUYGehOJEuGoPc6AGlwqeq5eLZzqIsglTc5e7H2BdH05enBvLZm U8WGw3WXx+K6mY2LYC2aCQHOPBAhtKd9gl7IuuBA= 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.6 504/737] i40e: fix scheduling in set_rx_mode Date: Fri, 9 Jan 2026 12:40:43 +0100 Message-ID: <20260109112152.953075486@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260109112133.973195406@linuxfoundation.org> References: <20260109112133.973195406@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.6-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 affdbd3ee76c..8a0eb51fe974 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -2260,6 +2260,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