Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 51F3C32E722 for ; Wed, 5 Nov 2025 19:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762369967; cv=none; b=mbjBBNGxCXhd+4ABwXW3iRPYF+nGtEBwGUQ2mdyDzBDW9MFuXDWQPW98Dz3djgnvt+tLN96kNOplKqPYR0VR571xQ42Imvz/bVBx7+5i+uYd5msGNR7ZlESJpv5c/nkraHHydshhX5M08GOXYTBnqYn8RBP21qmGmMYgCM4ykRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762369967; c=relaxed/simple; bh=SyJ3SYCF3gRrvu3C7rfv7W/4oAvWqM3anaoKZ2WP8Dw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SRxBHOntaDgDvcMY6Gp+b92/Jo+eSwVsOiG9xULlWYfaYi5IOQLqPr4sysbydC8a8nyOMlESUIohSLWVV+ufceb+pqLUfDOW77ZQ8U1XANMfYjBJG8pmL7LIVkUTm+cIR5eJqC41qmLIqxk4tday5nJvi/NqG5I4ENlk7Cy/v2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=o2Dl9lqc; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="o2Dl9lqc" Message-ID: <3695841c-d9e7-4c71-a81d-4fca5e1de8fc@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1762369962; 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: in-reply-to:in-reply-to:references:references; bh=jPCG4/wKuRgOdZXZHsD5gh/cG/gpHhwNURgx6mdwEdM=; b=o2Dl9lqch12Si/UQeahzlhmTvC+ANlu0cTNgNVc+dxHTGCBQ6GeN/RZ0ll8beLDKEk23e8 Rpvmb7+yBmRfodjZNWm9gtaIyYOrFoYFV4hu/qhnGqD87+9LzJArvZc7FLHrOAboOgsZsX 6DRa1x6IYuBoLTBqUyGvphBDWA2tpJk= Date: Wed, 5 Nov 2025 19:12:37 +0000 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next v2 1/7] bnx2x: convert to use ndo_hwtstamp callbacks To: Jakub Kicinski Cc: Manish Chopra , Marco Crivellari , Andrew Lunn , "David S. Miller" , Eric Dumazet , Paolo Abeni , Sunil Goutham , Richard Cochran , Russell King , Vladimir Oltean , Simon Horman , Jacob Keller , Kory Maincent , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org References: <20251103150952.3538205-1-vadim.fedorenko@linux.dev> <20251103150952.3538205-2-vadim.fedorenko@linux.dev> <20251104173737.3f655692@kernel.org> <20251105104610.726fb780@kernel.org> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <20251105104610.726fb780@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 05/11/2025 18:46, Jakub Kicinski wrote: > On Wed, 5 Nov 2025 13:33:08 +0000 Vadim Fedorenko wrote: >>>> bp->hwtstamp_ioctl_called = true; >>>> - bp->tx_type = config.tx_type; >>>> - bp->rx_filter = config.rx_filter; >>>> + bp->tx_type = config->tx_type; >>>> + bp->rx_filter = config->rx_filter; >>>> >>>> rc = bnx2x_configure_ptp_filters(bp); >>> >>> bnx2x_configure_ptp_filters() may return -ERANGE if settings were not applied. >>> This may already be semi-broken but with the get in place we will make >>> it even worse. >> >> Ah, you mean in case of -ERANGE we will still have new filter >> configuration set in bp object? It's easy to fix, but it will be >> some kind of change of behavior. If it's acceptable, I'm happy to send >> v3 of the patchset.> > > True, you can probably make the -ERANGE handling a separate patch > for ultimate clarity. Well, looks like there is a special guard hwtstamp_ioctl_called implemented, so it looks safe to move the check. I've sent these patches as a separate patchset.