hns3_lp_run_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hns3_lp_run_test(9) β€” Kernel API Manual, but make it make sense πŸ’…

okay so bestie, welcome to the hns3_lp_run_test(9) page β€” this is the kernel API manual, and no, we are not gatekeeping it. Sit down, hydrate, let's go 🫢


✨ NAME ✨

hns3_lp_run_test β€” literally just runs the loopback test πŸ”₯ that's it, that's the whole job, and it ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int hns3_lp_run_test (struct net_device *ndev , enum hnae3_loop mode );

so it takes two things and hands you back an int, periodt. πŸ“


πŸŽ€ ARGUMENTS πŸŽ€

  • ndev β€” the net device πŸ‘‘ like, the actual network interface we're doing all this for, main character vibes ngl
  • mode β€” the loopback type 🌈 iykyk, it's the enum hnae3_loop situation telling us which flavour of loopback we're running

🌸 RETURN 🌸

returns 0 when everything slays βœ… β€” otherwise you get a NIC loopback test error code on failure 😭 so like, 0 good, anything else, go read the code and vibe check it fr fr


⭐ SEE ALSO ⭐

  • Kernel file: ./drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c πŸ“‚
  • hns3_self_test(9) β€” the sibling page, go read it too bestie 🧚

🩷 reminder queen: if it's not 0, that's not a success, that's a cry for help from your loopback test. no cap.

and that's the page!! πŸŽ€ source/version lives at ./drivers/net/ethernet/hisilic... and the date is October 2026 β€” mwah, go touch some ethernet cables, ily, bye πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from