ENUM DEVLINK_TRAP_ACTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the enum devlink_trap_action(9) page from the Kernel API Manual! This is literally all about Packet trap action β€” that’s the name, that’s the vibe. πŸŽ€


✨ SYNOPSIS ✨

the way that this enum is built is giving very structured, very demure:

       enum devlink_trap_action {
           DEVLINK_TRAP_ACTION_DROP ,
           DEVLINK_TRAP_ACTION_TRAP ,
           DEVLINK_TRAP_ACTION_MIRROR

       };

🌸 Constants 🌸

here’s the lineup, no cap β€” three constants and they each have a whole personality:

  • DEVLINK_TRAP_ACTION_DROP β€” packet is dropped by the device, and a copy is not sent to the CPU. 🫢
  • DEVLINK_TRAP_ACTION_TRAP β€” the sole copy of the packet is sent to the CPU. πŸ‘‘
  • DEVLINK_TRAP_ACTION_MIRROR β€” packet is forwarded by the device, and a copy is sent to the CPU. πŸ¦‹

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./include/uapi/linux/devlink.h β€” bestie, go peek at enum devlink_trap_type(9) and enum devlink_port_fn_opstate(9) too. iykyk 🌈

mwah πŸ’‹ this lil page’s source/version is ./include/uapi/linux, dated October 2026, and the manual name is enum devlink_trap_action(9) β€” periodt. ✨

πŸ“¦ where this page comes from