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 EF7D33D602C; Thu, 15 Jan 2026 17:54:16 +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=1768499657; cv=none; b=EHsAST7JfA11F2p3X9es/HnZ0bK3fVsYZwIPU9mZuB9mNRLKPbAsGkZtlaFmfprk2H+uYS/dSleK1YeJ4weudSRFFRw4f/6UjE3jOJC4bU5Kaf9wI5qYZKxHleSoyxH655dK/LN+4dstdAJHi/Mq6k7BWGlki0SFHkF/QUT9yVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768499657; c=relaxed/simple; bh=qElGZQgn1OiMW6kuDT+++Mx7DQsGSdS5ysiHo0MV5/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uWfB+Vzc4yD9Tdvd2m605IqCWMo8zvXG3/d7lVBUoEWzo7xxqrM69XF9ZtQX159NdvqLYUfBTRbhQ+GfQ3H16wQgtcSaCkJVKcEs3yW7TITX02JTwIpDM1UVJl5wecEBC037+uOxfLhx/B9+btvQIgpux2j5iQPo7DwWE1uvo9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yMgKBqCh; 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="yMgKBqCh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87D92C116D0; Thu, 15 Jan 2026 17:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768499655; bh=qElGZQgn1OiMW6kuDT+++Mx7DQsGSdS5ysiHo0MV5/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yMgKBqChiD5lxEOzEr51CEaPlRTmfuB4s7oFHsLOa5uDOjwwhHY/SJikaQYFVxMyH tpPhhhiVCr7UPHou+Nu5idNi51B2Ejt+c70USL4eIgfMXars7kbZFKeou7nSYu4okJ Uebx2Jl9hcgpu9K7rGQQN3TJStxl5l02wvlS5iLk= 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 5.10 271/451] i40e: fix scheduling in set_rx_mode Date: Thu, 15 Jan 2026 17:47:52 +0100 Message-ID: <20260115164240.689339984@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164230.864985076@linuxfoundation.org> References: <20260115164230.864985076@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 5.10-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 f11cb3176cab..f11d6166186f 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -2101,6 +2101,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