Skip to content

Commit 1ad3f62

Browse files
kuba-mooPaolo Abeni
authored andcommitted
selftests: drv-net: xdp: rename netnl to ethnl
Test uses "netnl" for the ethtool family which is quite confusing (one would expect netdev family would use this name). No functional changes. Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://patch.msgid.link/20251007232653.2099376-5-kuba@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 858b78b commit 1ad3f62

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • tools/testing/selftests/drivers/net

tools/testing/selftests/drivers/net/xdp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,11 @@ def get_hds_thresh(cfg):
541541
The HDS threshold value. If the threshold is not supported or an error occurs,
542542
a default value of 1500 is returned.
543543
"""
544-
netnl = cfg.netnl
544+
ethnl = cfg.ethnl
545545
hds_thresh = 1500
546546

547547
try:
548-
rings = netnl.rings_get({'header': {'dev-index': cfg.ifindex}})
548+
rings = ethnl.rings_get({'header': {'dev-index': cfg.ifindex}})
549549
if 'hds-thresh' not in rings:
550550
ksft_pr(f'hds-thresh not supported. Using default: {hds_thresh}')
551551
return hds_thresh
@@ -562,7 +562,7 @@ def _test_xdp_native_head_adjst(cfg, prog, pkt_sz_lst, offset_lst):
562562
563563
Args:
564564
cfg: Configuration object containing network settings.
565-
netnl: Network namespace or link object (not used in this function).
565+
ethnl: Network namespace or link object (not used in this function).
566566
567567
This function sets up the packet size and offset lists, then performs
568568
the head adjustment test by sending and receiving UDP packets.
@@ -681,7 +681,7 @@ def main():
681681
function to execute the tests.
682682
"""
683683
with NetDrvEpEnv(__file__) as cfg:
684-
cfg.netnl = EthtoolFamily()
684+
cfg.ethnl = EthtoolFamily()
685685
ksft_run(
686686
[
687687
test_xdp_native_pass_sb,

0 commit comments

Comments
 (0)