Article View: linux.kernel.netdev
Article #9651Re: [PATCH ethtool] netlink: require a value for hds-thresh and the TDR parameters
From: Andrew Lunn
Date: Mon, 02 Nov 2026 13:36
Date: Mon, 02 Nov 2026 13:36
30 lines
9165 bytes
9165 bytes
On Sun, Nov 01, 2026 at 06:39:19PM -0800, Dave Seddon wrote:
> hds-thresh (-G) and 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 -G eth0 hds-thresh
> ethtool (-G): invalid value '(null)' for parameter 'hds-thresh'
> # 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 -G eth0 hds-thresh
> ethtool (-G): no value for parameter 'hds-thresh'
>
> Only the message changes: the exit status was already 1 and no request
> was sent.
>
> Fixes: 66e5dcf295c0 ("ethtool: Add support for configuring hds-thresh")
> Fixes: 9561db9b76f4 ("Add cable test TDR support")
It would be better to have two patches, rather than one patch with two
Fixes.
The changes themselves look O.K.
Andrew
Technical Details
Message-ID:
<77e3fd9d-f2fa-479f-bfb7-c129a4461023@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-354700-linux-kernel-netdev=dewy.ruReferences:
<20261102023919.1472495-1-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-354700-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH ethtool] netlink: require a value for hds-thresh and the TDR parameters Date: Mon, 2 Nov 2026 14:36:16 +0100 Organization: Usenet Network Message-ID: <77e3fd9d-f2fa-479f-bfb7-c129a4461023@lunn.ch> References: <20261102023919.1472495-1-dave.seddon.ca@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2932845"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Fm4ZJmY2OP3DG8eiKIm1N5VinwQ= sha256:zL7Z5XYy/fNYRh7U+t+LiVBBWdUo3tD5pxxJB8pMiEI= sha1:/xwWEz0fD5osHlmmDQKlvZasp7Q= sha256:qgHSk+bBX3n2eR83lRqMam24YPsRgo1Z9AI/Z44HgOI= 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 DB47F112514; Mon, 2 Nov 2026 16:39:41 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.15 X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31 tests=[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, URIBL_BLOCKED=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 1ZHayR9-XGjq; Mon, 2 Nov 2026 16:39:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-354700-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 4308E1124DC; Mon, 2 Nov 2026 16:39:29 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 2A44260694F; Mon, 2 Nov 2026 13:36:23 +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=1793626582; b=lxHV5KurcY6C1WUAe2sp75ZXsHCQMgyg+6VM6cwjxjtq+JKjyxkSIOzwmKwHrlNSXnzO oqJUGjdSMgJSCrl43htrZcmv4THDNAarYZahvZqBta1odr2OaBXliBrrtt3N0+dZWBLbJ UDL8oIZKg8RGK6z6u55joTK54YOJKUI9yU4T8QcalQpXq7X7zch4vbSsDXkfwFg6WJG1w pTtdsCQDIk+1W9UCRy3qxO/DfM7L3V3xK6/rLXdBQKlWl7MwHWen+HcMpHWEuBjYExRjq 6Kxe/N4tobnFF13C2hGzIh62BQyC+xDyraJLmaAFR6UQeNKfFpuPR7xHEbh++S8OBQg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793626582; 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=qKZ04hAZuwVXvCMLEEjYypv0Us/K6RMBdDWAUnDfKYk=; b=bWuLbdp3zfEJAZt+Ym1GSY012dUTOfz3J+JkfkaP+rIZdAsE+CGwv8gEuLOmuVvbbTSt AcH7lWcKm2UYMwFr6s0cXjzNuGax9/o9iNcVoD8wzv16Yya+4D3Vdh+/r0CSsD5jnuLIi BSE6kNaYiDBD5R1VTIovPeMAnv2OyOhCVeI1hcEl7z+LzLVVB2iPQDfHFJVpKz8zrA/19 xiOv7oGuk4utJBTb9kIsXW5XTQXeasLJJx5GSmvL5wdIxULEE0Zw3xI9lxxmLd6yinZDU UsWzYDF26BbfzqMscxGvd2l3Z0zPGgJULtFZ8Rn2dLPiW4zErD7EjNMJa4a7txEdZvQ== 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=LsDijRQ4; 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 4A627606A32F; Mon, 2 Nov 2026 13:36:22 +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=LsDijRQ4 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=1793626581; b=Lj8/cQs8y6QEjl7zUkeng6oSrnztnTO6i916gSTLittrP+AcUh3kRqsEeYvvUUIQVf/o b1xK0582YTkyTg0Uti4wrQhhdrHxm91H+dq5iLuOQWjoaI1t3QqAIMZBhI0GE4vMxH4KE B3yF61ARiDo7FSqZC3oQwN5tnVXNbW+C5Zz7RszcwGLe/rS4v2li27lqEfXqH1H/Kda1T oPfS+7ueqgjPOFGDxQHeQgiS6zfXdEHLQzCAWmMZ80NIxLBSvduQjJFoLK+PviDN2mO34 yC1/Vq6v6RC51+1JKLCDUTRuNFdVW74Ddjc2vKFI5kpq8JmMRbQU3e9LDSJI9KRRazg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793626581; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=qKZ04hAZuwVXvCMLEEjYypv0Us/K6RMBdDWAUnDfKYk=; b=G6jMLc5bBzSnPaxu9PWcsQUKWdlKaNvj+crvM+WXPqW06XX5c4iLAgs9ObSuBDRO/Sow I/lVoU0thpDuPyW+iD4k9Clk5IyGZwbpYWOBUu0VLZijwe9qyvPaHPfiD9LLbbqAU4S4L 91pELVm09CxGuefX0CT4+TTn/TeDXF0M/snveLeua2wKb0aAYFT0t23UQOopgJc7HdJ/L sGjmwRLQ/N0bf5T0TPAKxWM3hT7sMBNAtUmlajdEKzSjLGa8EErwAb6fHLz8hdOxwq3ZX NL7brIIXqfcF+LzoN5qnG2Azo6LT8ehQapUuvy5Mxfnw9MTr7+bS3daoIoUV+FydruA== 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=LsDijRQ4; 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 1532C606A327 for <netdev@vger.kernel.org>; Mon, 2 Nov 2026 13:36:19 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1532C606A327 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=qKZ04hAZuwVXvCMLEEjYypv0Us/K6RMBdDWAUnDfKYk=; b=LsDijRQ4omthwICubdL161Yn3l tvYv1kIf7yAB0/tzQ4Rmbsg2JlfHhiF1Y0+AHeYS0vO9V1ncloo4beXPVG8WDDmbPJd2gqX+ciICp x7pZwWMQHnq+2OGmQ4gV2H8w8ezs/pJUxcIKA3WcLIA2djtgv4CMsl/W/bzj07GV1h1Y=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xNsCu-00Dnjl-H4; Mon, 02 Nov 2026 14:36:16 +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: <20261102023919.1472495-1-dave.seddon.ca@gmail.com>