linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] fix wrong hds-thresh value setting
@ 2025-04-03  6:04 Taehee Yoo
  2025-04-03  6:04 ` [PATCH net 1/2] net: ethtool: fix ethtool_ringparam_get_cfg() returns a hds_thresh value always as 0 Taehee Yoo
  2025-04-03  6:04 ` [PATCH net 2/2] selftests: drv-net: test random value for hds-thresh Taehee Yoo
  0 siblings, 2 replies; 4+ messages in thread
From: Taehee Yoo @ 2025-04-03  6:04 UTC (permalink / raw)
  To: davem, kuba, pabeni, edumazet, andrew+netdev, horms, shuah,
	netdev, linux-kselftest
  Cc: kory.maincent, willemb, aleksander.lobakin, ecree.xilinx,
	almasrymina, daniel.zahka, jianbol, gal, michael.chan, ap420073

A hds-thresh value is not set correctly if input value is 0.
The cause is that ethtool_ringparam_get_cfg(), which is a internal
function that returns ringparameters from both ->get_ringparam() and
dev->cfg can't return a correct hds-thresh value.

The first patch fixes ethtool_ringparam_get_cfg() to set hds-thresh
value correcltly.

The second patch adds random test for hds-thresh value.
So that we can test 0 value for a hds-thresh properly.

Taehee Yoo (2):
  net: ethtool: fix ethtool_ringparam_get_cfg() returns a hds_thresh
    value always as 0.
  selftests: drv-net: test random value for hds-thresh

 net/ethtool/common.c                       |  1 +
 tools/testing/selftests/drivers/net/hds.py | 28 +++++++++++++++++++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-04  5:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03  6:04 [PATCH net 0/2] fix wrong hds-thresh value setting Taehee Yoo
2025-04-03  6:04 ` [PATCH net 1/2] net: ethtool: fix ethtool_ringparam_get_cfg() returns a hds_thresh value always as 0 Taehee Yoo
2025-04-03  6:04 ` [PATCH net 2/2] selftests: drv-net: test random value for hds-thresh Taehee Yoo
2025-04-04  5:26   ` Taehee Yoo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).