Article View: linux.kernel.netdev
Article #9862[PATCH ethtool v2 0/2] netlink: require a value for hds-thresh and the TDR parameters
From: Dave Seddon
Date: Mon, 02 Nov 2026 18:51
Date: Mon, 02 Nov 2026 18:51
28 lines
11574 bytes
11574 bytes
hds-thresh (-G) and first, last, step and pair (--cable-test-tdr) take a value but leave min_argc at 0, so a missing value prints "invalid value '(null)'" instead of "no value for parameter". Each patch sets min_argc to 1 for one command. Changes in v2: - Split into one patch per command, each with its own Fixes tag (Andrew Lunn). - v1: https://lore.kernel.org/netdev/20261102023919.1472495-1-dave.seddon.ca@gmail.com/ Checked by hand on a build of each patch on bae2dbd: the parameters it covers print "no value for parameter", the others are unchanged. make check passes. Claude found the issue while porting the code from C to Go, and drafted the patches; I reviewed them and take responsibility for them. Dave Seddon (2): netlink: rings: require a value for hds-thresh netlink: cable_test: require a value for the TDR parameters netlink/cable_test.c | 4 ++++ netlink/rings.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) -- 2.56.0
Technical Details
Message-ID:
<20261102185122.1357927-1-dave.seddon.ca@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354992-linux-kernel-netdev=dewy.ruShow 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-354992-linux-kernel-netdev=dewy.ru
From: dave.seddon.ca@gmail.com (Dave Seddon)
Newsgroups: linux.kernel.netdev
Subject: [PATCH ethtool v2 0/2] netlink: require a value for hds-thresh and the TDR parameters
Date: Mon, 2 Nov 2026 10:51:19 -0800
Organization: Usenet Network
Message-ID: <20261102185122.1357927-1-dave.seddon.ca@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3003507"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/O4txTQbqxk/QSpifvswtpx2soY= sha256:Ld4icDkul/E7TV2ibh6BDuqLfXYTZUmlc5MSCNQW5is=
sha1:wt76E++lN7Xs8lVmSh7JbJ3S4no= sha256:bnooygfpHZku1SPTRI3nN+c7bGWmtHwvRqYrDHLwTeM=
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 319B6112617; Mon, 2 Nov 2026 21:51:41 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.149
X-Spam-Status: No, score=-3.149 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001,
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 (2048-bit key)
header.d=gmail.com
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 KOZDvxRaJL6q;
Mon, 2 Nov 2026 21:51: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-354992-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 37A17112614; Mon, 2 Nov 2026 21:51: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 F258C6024A4; Mon, 2 Nov 2026 18:51:28 +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=1793645486;
b=Bte6UzTqsPOb6UenF3at3iEjDMX55pqhkXTJYgO+zE6WLl1/y/JwpVSVktOlWWik0Pq2
o6lG1Yl96o8zu/+8HpyypStUqm+0kuWA4rtFvm6my6zkMhpYq9Taz0Chb0DihBut/LzKD
93yOaGyM+Xp+EausefcWinYMh3AU605HaVEYJ2tovTovAvhk20lTXfOWAdtKdppU6Nqn1
FPStKa8Ky59YduEmIo1WecgVT9FZoH1E+e/+mHdpm3WiG7a8l1AOyQqEn9bCaljyFJd1j
SI7XQ8T68UkA7VRpe6T+eeMaMeF8WAW9SfyNtmnJ0XL4429+am5e/LeRRfnIOi9vR4w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793645486;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=QlHiGf+lt6/lLFvfcn5PBs13x1On6n09Gjxo1myFIdk=;
b=1RMC8Loapjxm9dy52kH5wibiU/1Ni6Nsqu6XZYBmzIzahQ0O4kb2ppGDvLJwwf6Atm1B
uEinQmRVxFL0qXoe8rI7FcVaTRLIMLGwfd7qYuywe/yQ/Uilz/JvPvO12KWH7zlo1iI3T
lkeLUEQNpaLKDJPONpyFmowug2uUh5nue6gDjDjZaHtfrocOr/dMNw110Zlae1dQWD8iQ
mibLv/Rb0L23jxLjHOayCnYWjDEm+wMU1a8G6F5o2PXP79Nyqc+u8fKTJa2c7R6cl0Y4+
SYuTMtD0vlyuz7vIYXej7l9UilmmqW6suxS0OACDTUNPDR00QTBKaCHdXN2PRw2MQig==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=vBrS4SZD;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 53CAA606A330;
Mon, 2 Nov 2026 18:51:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=vBrS4SZD
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793645485;
b=Mw4aXE6u6J/RDIfaY9Pb69qU83y8TsIm18hLajK/3HKQsULGaC1qrARelVTp9rSAAaLf
V9QjFnNQbKfNfpCg616twNS0NMPwUp5dSa43a8sSnt+TrOPA5KC3vW7zsbbiRfFkhHCPS
Z4Rd2PpMJJ9GSzvN/nCDrBtnopuN6a1TO1Kf1n0lISKr0BDTACRbeFM6S4E4Z/LJLKsG5
HLs5790rEDWbe9lMhyjp1s/u4Xl0Jm+XZyiALmPUPXxkq+iOnup9g+JRPyY2/T9s6TNvp
KezyPn7sp7Bjh3tShLvXpIuR759PcROuP2Wu7wApjq8OEQxIQaJrDany8ibRawfopBw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793645485;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version:
Content-Transfer-Encoding;
bh=QlHiGf+lt6/lLFvfcn5PBs13x1On6n09Gjxo1myFIdk=;
b=NCvFlu0wt0FPBelzFsMvZRtmrJ7CUpov6M9VXI3TQgIj/0jFYWj6OUmhTZM9ZdX6K9e2
hNc/M02cpaZeKWV7IPkz9pVxi+QhhFp/SU29pKnmGp6Bzu/5hTaGFsOhLruC1ThNaB0IS
yBmIu8KM4wYjqOPzxuhhjD8KTkfqBARYuF2GmKMilK617gYbZqVrrUppd4+lQrpAZDuBL
Ad2JQzoz8iuN/vc2Q2K+NvTFIM2pwq0QAe89H0dv68zk5DJLx0pCCucRiosx0hYIaMaOx
pdxE44VQbMOST3HocqldTAuIxeSVDwNOadA2UnUV78Mw/lBfH+BWG7nZQlvePNRzyoA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=vBrS4SZD;
arc=none smtp.remote-ip=74.125.82.52
X-Received: from mail-dl1-f52.google.com (mail-dl1-f52.google.com [74.125.82.52])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18CDD606A324
for <netdev@vger.kernel.org>; Mon, 2 Nov 2026 18:51:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 18CDD606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f52.google.com with SMTP id a92af1059eb24-1438d9363fbso2642195c88.0
for <netdev@vger.kernel.org>; Mon, 02 Nov 2026 10:51:24 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793645484; x=1794250284; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=QlHiGf+lt6/lLFvfcn5PBs13x1On6n09Gjxo1myFIdk=;
b=vBrS4SZDzaYDB61VTJynnuJZcypDpcykiaFHOWQX55fGMHia+iQJWyVnZlQmIwpU4C
nBuC+w6bspHmULaJL8SBFdimZcfxZpuDZ+wWbazP/O28WShasGACIYvZrx0KzOcVo5Eh
uwjQhSUbtQmD2AY2s670mh/DNVOTkKKu5GZ2f/aVD888fJj4dxsYuWtL6aj1VPqNJDJh
PXpxqQNkp+uTsFQfsalVmshJ0zH4X8nt41cCVTa92pR84SyEdvzYwGrtB2oGF4ZHVQX+
aFhxkavq6Uen/nOV9p46cNH0fDLbV1WUWGg8cSPV0VgqalzxkG0wdalugMZhfGPQkRo+
RFXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793645484; x=1794250284;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=QlHiGf+lt6/lLFvfcn5PBs13x1On6n09Gjxo1myFIdk=;
b=rZskfFlEBcbRfCgjAwdszYLgmzk/sWl8wJ2JRO5c7q6Z2gebltilpgNwNH8x5K8YsV
DhdY7STl49OLtlA9z2ZhlP/k+AqXxsG1W2L/wvSnYZYhqNLAUXnp6znicA1SzEBBuNyG
imJbDhaeuWKHPXCuxBPyntgmMLGtcZy+98Nlu+E8vI+Gt3ZDEqZlsdCGvEIhS8TwL1Rm
Cv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YCNSVuLpox306gASWIwo+uZJxuU42Zbtq6GLmdw==
X-Received: by 2002:a05:7022:628d:b0:184:40db:6bb9 with SMTP id a92af1059eb24-1a94876dbd0mr27132117c88.8.1793645484075;
Mon, 02 Nov 2026 10:51:24 -0800 (PST)
X-Received: from l ([2603:8002:ea00:6800:4808:7aa2:ac97:30e9])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1ac1abcd6f1sm34625198c88.20.2026.11.02.10.51.23
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 02 Nov 2026 10:51:23 -0800 (PST)
X-Cc: Dave Seddon <dave.seddon.ca@gmail.com>,
Taehee Yoo <ap420073@gmail.com>,
Andrew Lunn <andrew@lunn.ch>
X-Mailer: git-send-email 2.56.0
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