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 2213C224B15; Tue, 6 Jan 2026 17:30:43 +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=1767720643; cv=none; b=u/RL+R2LJg7ffdRpxXUtZl1Ji/XkENALYEgDbD0Zbj46CUfc0atzYn/QeTVA0LYCqTvDf7qhflP7K0VRZ0x6EoJWvctm3lSK1VZ9w6w2doqmBY0S/yI6X0DBexFwJa3340KnPbKykcOHi7QPTFxB10+Aw07Q/dCN//MJ+3qamTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767720643; c=relaxed/simple; bh=lMqMOhoeIWQVRysKKjfWXmbMwzRK4gWRDnpHqmf3DiA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UQo9HcJFRSLBTe4z1BQcUXJwOD9fET8mg+sKTP3wdNQMY+SMzS8XFuE0H+0DnL+JTrjuQ46l05Yw4yNVbozTyL7ccGhQ64uuN08oNHjfg6alBaxqETy3oOUDHCsQy76zDH/fL2PEzS7QLwNlIgoCP7TM54yLjL/z5WvhMwtWw0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aDvSPu1X; 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="aDvSPu1X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E940C116C6; Tue, 6 Jan 2026 17:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767720643; bh=lMqMOhoeIWQVRysKKjfWXmbMwzRK4gWRDnpHqmf3DiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aDvSPu1X6xG/Ali6jzeO4U205woUMZhFDiH7Z1RNVT4QimWWWQxYzZ3osKsd3LS4F Ww3enXhBDigjBFPGvcWf/hJm7LytKZ9cD+sjj84e0FZ90fOVP6+nACG260GXCSVuGH UmodH11fVHIP8yQfb+Si2+wERVwseeTzSaWOwCQg= 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.12 298/567] i40e: fix scheduling in set_rx_mode Date: Tue, 6 Jan 2026 18:01:20 +0100 Message-ID: <20260106170502.355658660@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260106170451.332875001@linuxfoundation.org> References: <20260106170451.332875001@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.12-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 eae5923104f7..2dc737c7e3fd 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -2256,6 +2256,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