🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10389

Re: [PATCH ethtool v2 2/2] netlink: cable_test: require a value for the TDR parameters

#10389
From: Andrew Lunn
Date: Tue, 03 Nov 2026 13:31
26 lines
9075 bytes
On Mon, Nov 02, 2026 at 10:51:21AM -0800, Dave Seddon wrote:
> first, last, step and pair (--cable-test-tdr) take a value, but their
> parser entries leave min_argc at 0. Given as the last word on the
> line, the value handler reads the NULL that ends argv and the error
> message prints it:
> 
>   # ethtool --cable-test-tdr eth0 first 1 last
>   ethtool (--cable-test-tdr): invalid value '(null)' for parameter 'last'
> 
> Set min_argc to 1, as every other value-taking parameter does, so the
> parser reports the missing value itself:
> 
>   # ethtool --cable-test-tdr eth0 first 1 last
>   ethtool (--cable-test-tdr): no value for parameter 'last'
> 
> Only the message changes: the exit status was already 1 and no request
> was sent.
> 
> Fixes: 9561db9b76f4 ("Add cable test TDR support")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Dave Seddon <dave.seddon.ca@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <cc07992d-1ee3-4caf-a4fa-3e8f24787b6e@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355640-linux-kernel-netdev=dewy.ru
References: <20261102185122.1357927-1-dave.seddon.ca@gmail.com> <20261102185122.1357927-3-dave.seddon.ca@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355640-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH ethtool v2 2/2] netlink: cable_test: require a value for
 the TDR parameters
Date: Tue, 3 Nov 2026 14:31:14 +0100
Organization: Usenet Network
Message-ID: <cc07992d-1ee3-4caf-a4fa-3e8f24787b6e@lunn.ch>
References: <20261102185122.1357927-1-dave.seddon.ca@gmail.com>
 <20261102185122.1357927-3-dave.seddon.ca@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3176922"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oIYN0WA4XnlSu3q7h2Le8td/cl8= sha256:U9Z2fdYGSYDa8GPVz9CBt0KyW52TN96tTKn0aHlB+r4=
	sha1:A9lhxGDRvAPSBWh6DG3qrbkP+SU= sha256:PlLQqOofYEOlJgytDJlVsxfaHWGxa9W8t6r9YkUhMRw=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C5B7D1128B5; Tue,  3 Nov 2026 16:42:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ruXh4kXQdEt7;
	Tue,  3 Nov 2026 16:42:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-355640-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 2C2A31128A8; Tue,  3 Nov 2026 16:42:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 3A62443331; Tue,  3 Nov 2026 13:31:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793712678;
	b=e6TPHsYPGsm9KciGk8pFnx0QV0elh8v6aoG5Dtmtk/b4rvtGqhGsEqW9FxfhyouppAZC
	 WAGQz3GlSq4+P8VfTA7IQ6i2Wv07S5+IFrP/AdPYy2j7gXuz52Ngs6P3P7Imr/e7KvVVs
	 2kW2rFS6vFnFdHVuhwb4WWjuwfIhCmA9JvTsiRiZnPsFlwb28Jo9RPNrVaIPJ3+R5uCrP
	 /nr8UepXIhV2S/pXrrD6MGZP0kOzaa8j60Nf3kkQEuVoZG025GUPx9H+QoYVmFdHXwrqh
	 C4RmVJtYc6blji+5OIDeE9qviiQHeqTWPHirDlGiiP81GIx/fU1Cposb07KGIJxOO+Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793712678;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=rhTCd9eZcz8s08knKuHxKhiHDXK0Aw9iFKVIX6Xh6m8=;
	b=3uiGWbJXCTZDwovCrZOxIAyq8jl2KNj/Cg3/oHdNlcqVDe+EsJ20I/VJGw3vawEszDT9
	 UAhRQIYy4Y8dvPIyOGut3+rn/a/XcOHtXhytJ0NquT10dInzFmRIcOMo0NPSDjc6dJ3PM
	 RUzyef1YIRULaMmtGi5+MAT7RNX34ocHGuZIeMKxcCq6o2eHQM44wDHywxT39zMWZZmKk
	 woBuPldw4a9B2LFB333kb3EMBCFZ1CBsp1nIHLI4mVz1BL+u4mvrhBnPw5l6uk0DmTqn9
	 5rsnqERPlUvMvMhFB2payhdY4kGu2BdB/Qy5c47q+fZSMYWR7cpnBOqnU/q+6xtt8qw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=bdN+PHkt;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id D5AB6606D827;
	Tue,  3 Nov 2026 13:31:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=bdN+PHkt
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793712678;
	b=3nTA/ylWoLipblSj8yn4ixGdHPcVL5n5liQ+etvVEeD1Q5v4BFFBJ8Vd5S1PHlXkRxnw
	 wPaP9z+gRLdUejgnVXT/YJ4GeKTQNu2G18H6f3Y+p/CXjojJB452ksXfAc8sID8cXBAJ3
	 WsQCZpalh8H1ReJqXEicStj7aefkCk/td55/jJy+EAeRfPqsMkqy+Hy7rcGbAUYzQ4dMn
	 4X9HE8tLa7bZeCwmrOdVpemloe8SwCwYwUPADC5B+UdxneNBiQUCJpJWA/qfvx8R+d6Yt
	 kwbcIQk06FIFQvbqKVMmy55k7bE/H0fOz/Aa4JeWTO9C+rWO4OBs6gCkOMWQzKpTMlw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793712678;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=rhTCd9eZcz8s08knKuHxKhiHDXK0Aw9iFKVIX6Xh6m8=;
	b=jATvvIZIJoV7l2O5ktbkuhECPBM/CRxJGU/CdO/3PEGehUrdFKwX6lJNOHWXy262q6J2
	 Oa9ze9AfOzqkoceJmNoToMGzQVa7NS8rhDoV6yTMQK0esmyM4whmOrFB+iqm8vaHOzsHZ
	 hYto3eMvMlkSbFAnQ8ivTG6/s5EL73g3P28oO6gEYAIcvCQOjTN1hKTU4XCtv45R81pfp
	 D2LZLi7BSVuCHvSWI44JDGDS5qW7lEG7s6nJlumQ6IdpT++mYhjn9QScN0cipmNDzV+1j
	 2LeTAXS3+57+ojSRx9u2ypuPlK1NiOkzTjvnBnA7Qx1PgiQy5wBKRBFaLgMaUa0c1jw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=bdN+PHkt;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E67C606D81B
	for <netdev@vger.kernel.org>; Tue,  3 Nov 2026 13:31:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6E67C606D81B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=rhTCd9eZcz8s08knKuHxKhiHDXK0Aw9iFKVIX6Xh6m8=; b=bdN+PHktcCVcI74jmQOC60gGsz
	1/wduXiR/zq9mgJ+ON74FPhmJYWlJHoL/5dqI+u+/z6Pob0WkTwYalteYTT38zAGGv+bOt079aUqe
	B++PlW2sOuT958IZdElThQ2oLZWMGsD611+vY8JVKgx6Ma0V55Y/tS5J/t58/7qAZGg4=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOEba-00E3xX-UI; Tue, 03 Nov 2026 14:31:14 +0100
X-Cc: Michal Kubecek <mkubecek@suse.cz>, netdev@vger.kernel.org,
	Taehee Yoo <ap420073@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261102185122.1357927-3-dave.seddon.ca@gmail.com>