STRUCT DEVLINK_DPIPE_MATCH(9)
π struct devlink_dpipe_match(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel, you open the devlink header, and this little struct is sitting there being iconic. it "represents match operation" β that's the whole vibe, that's the name line, periodt. it's the thing that says "hey, this is what we're matching on" in the dpipe world, and honestly? it ate. π
β¨ SYNOPSIS β¨
struct devlink_dpipe_match {
enum devlink_dpipe_match_type type;
unsigned int header_index;
struct devlink_dpipe_header *header;
unsigned int field_id;
};
like, that's the whole struct. four little members, four little besties, all doing their part. π«Ά
πΈ Members πΈ
typeβ the type of match. literally what kind of match operation this is. that's it, that's the whole job, and it's doing it beautifully. πheader_indexβ the header index, and ngl this one's lowkey important: packets can have several headers of the same type, like in the case of tunnels. so yeah, index isn't just decoration, it's how you tell your tunnel headers apart. iykyk. πheaderβ the header. yes bestie, that's the description, it's giving "minimalist" and we respect it. β¨field_idβ the field index. which field inside the header we're matching on. slay. π
π SEE ALSO π
kernel file: ./include/net/devlink.h β go read it, it's the source of truth fr fr.
and now the whole extended friend group, in order, no one left out:
struct devlink_port_pci_pf_attrs(9)struct devlink_port_pci_vf_attrs(9)struct devlink_port_pci_sf_attrs(9)struct devlink_port_attrs(9)struct devlink_linecard_ops(9)struct devlink_dpipe_field(9)struct devlink_dpipe_header(9)struct devlink_dpipe_action(9)struct devlink_dpipe_value(9)struct devlink_dpipe_entry(9)struct devlink_dpipe_dump_ctx(9)struct devlink_dpipe_table(9)struct devlink_dpipe_table_ops(9)struct devlink_dpipe_headers(9)struct devlink_resource_size_params(9)struct devlink_flash_notify(9)struct devlink_param(9)struct devlink_flash_update_params(9)struct devlink_region_ops(9)struct devlink_port_region_ops(9)struct devlink_health_reporter_ops(9)struct devlink_trap_metadata(9)struct devlink_trap_policer(9)struct devlink_trap_group(9)struct devlink_trap(9)struct devlink_port_ops(9)
like okay, that's a lot of cross-references, but that's the friend group and they're all valid. π
π real talk though: this page is dated October 2026 and comes from ./include/net, so if you're reading a different kernel tree, do a lil vibe check on the source before you trust every line. no cap.
and that's the page, bestie!! π source: ./include/net, dated October 2026, filed under struct devlink_dpipe_match(9) β go forth and match some fields, you absolute main character. πππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms