IS_NETWORK_BYTE_ORDER(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet rte_swx_ctl_action_arg_info β€” yeah that's a whole mouthful, it's literally the manual page rte_swx_ct...on_arg_info(3) from the Library Functions Manual ✨ (the title got truncated by the terminal, not by me, blame the vibes πŸ’€). It's a struct, and it's all about action argument info. That's the whole thing. Iconic, straightforward, we love a low-drama struct 🫢


🌸 SYNOPSIS 🌸

#include <rte_swx_ctl.h>

πŸ¦‹ Data Fields πŸ¦‹

  • char name [RTE_SWX_CTL_NAME_SIZE] β€” the action argument's name 🏷️
  • uint32_t n_bits β€” how big the action argument is, measured in bits πŸ“
  • int is_network_byte_order β€” a flag that tells you which byte order the action argument has to be stored in 😀

✨ Detailed Description ✨

Okay so this whole struct is just Action argument info. That's it, that's the vibe check πŸ’…

Fr fr, Definition at line 182 of file rte_swx_ctl.h. β€” that's where it lives, go look, it's real πŸ‘‘

πŸŽ€ Field Documentation πŸŽ€

🌈 char name[RTE_SWX_CTL_NAME_SIZE]

The action argument's name. That's the label, the little nametag it wears at the party 🏷️✨

Definition at line 184 of file rte_swx_ctl.h.

🌈 uint32_t n_bits

The size of the action argument, and it's measured in bits β€” not bytes, bestie, bits. Don't get it twisted or the whole thing is giving chaos πŸ˜­πŸ“

Definition at line 187 of file rte_swx_ctl.h.

🌈 int is_network_byte_order

Okay this is the main character of the page, lowkey. Here's the tea β˜•:

  • Non-zero (that's true, bestie) means this action argument must be stored in the table in network byte order (NBO) 🌐
  • Zero means it must be stored in host byte order (HBO) 🏠

So like, it's a straight-up binary vibe check on your byte order. No in-between, no "it depends", just NBO or HBO, pick one πŸ˜€πŸ’€

Definition at line 193 of file rte_swx_ctl.h.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. So nobody hand-wrote this, a robot did it, and honestly? Slay, little robot πŸ€–πŸ’–


and that's the whole page!! tysm for reading bestie, go forth and store your action arguments in the correct byte order, no cap 🫢✨ this was DPDK Version 26.03.0, signing off β€” mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from