From: "Íñigo Huguet" <ihuguet@riseup.net>
To: Jakub Kicinski <kuba@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org>
Cc: "Sabrina Dubroca" <sd@queasysnail.net>,
"Filip Pokryvka" <fpokryvk@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
"Íñigo Huguet" <ihuguet@riseup.net>
Subject: [PATCH net-next 0/5] netdevsim: get link via ethtool, set via sysfs
Date: Sun, 10 May 2026 18:43:32 +0200 [thread overview]
Message-ID: <20260510164337.7611-1-ihuguet@riseup.net> (raw)
Allow to read the carrier status of a netdevsim device via ethtool, like
most of Ethernet devices allow.
Also, allow to set its carrier status via sysfs. Currently it's only
possible by linking a peer device and setting its admin state to
UP/DOWN. By editing the carrier status via sysfs tests that need to
check carrier related stuff may be simpler.
The third patch add the proper selftest for both things, and the fourth
and fifth fix a few small bugs in the selftest itself.
Filip Pokryvka (1):
netdevsim: Add ethtool get_link support
Íñigo Huguet (4):
netdevsim: allow changing carrier state via sysfs
selftest: netdevsim: test carrier change via sysfs
selftest: netdevsim: cleanup the devices and module on failure
selftest: netdevsim: suppress socat warnings
drivers/net/netdevsim/ethtool.c | 1 +
drivers/net/netdevsim/netdev.c | 23 +++++
.../selftests/drivers/net/netdevsim/peer.sh | 84 ++++++++++++-------
3 files changed, 80 insertions(+), 28 deletions(-)
--
2.53.0
next reply other threads:[~2026-05-10 16:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 16:43 Íñigo Huguet [this message]
2026-05-10 16:43 ` [PATCH net-next 1/5] netdevsim: Add ethtool get_link support Íñigo Huguet
2026-05-10 16:43 ` [PATCH net-next 2/5] netdevsim: allow changing carrier state via sysfs Íñigo Huguet
2026-05-10 16:43 ` [PATCH net-next 3/5] selftest: netdevsim: test carrier change " Íñigo Huguet
2026-05-10 16:43 ` [PATCH net-next 4/5] selftest: netdevsim: cleanup the devices and module on failure Íñigo Huguet
2026-05-10 16:43 ` [PATCH net-next 5/5] selftest: netdevsim: suppress socat warnings Íñigo Huguet
2026-05-10 16:52 ` [PATCH net-next 0/5] netdevsim: get link via ethtool, set via sysfs Jakub Kicinski
2026-05-11 9:50 ` Íñigo Huguet
2026-05-11 23:59 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260510164337.7611-1-ihuguet@riseup.net \
--to=ihuguet@riseup.net \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fpokryvk@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox