ovs_nla_get_flow_metadata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ovs_nla_get_flow_metadata πŸ’…

okay so bestie, this is a page from the Kernel API Manual β€” section 9, kernel devs only, no cap β€” and it's literally about turning Netlink attributes into a flow key. yes THAT flow key. buckle up πŸŽ€


✨ NAME ✨

ovs_nla_get_flow_metadata β€” parses Netlink attributes into a flow key. that's the whole job. iconic honestly 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int ovs_nla_get_flow_metadata (struct net *net , const struct nlattr
*a[OVS_KEY_ATTR_MAX + 1] , u64 attrs , struct sw_flow_key *key , bool
log );

🌸 ARGUMENTS 🌸

  • net β€” Network namespace. the whole vibe-check context for the network you're in πŸ’«
  • a β€” Array of netlink attributes holding parsed OVS_KEY_ATTR_* Netlink attributes. that's literally the array, bestie, the OVS_KEY_ATTR_* ones, already parsed ✨
  • attrs β€” Bit mask for the netlink attributes included in a. so it's the little checklist of which entries in a are actually in play 🎯
  • key β€” Receives extracted in_port, priority, tun_key, skb_mark and conntrack metadata. she's getting filled in with all the good stuff πŸ’–
  • log β€” Boolean to allow kernel error logging. Normally true, but when probing for feature compatibility this should be passed in as false to suppress unnecessary error logging. so like, false when you're just snooping around asking "u up, do you support this?" and don't want the kernel screaming into the logs πŸ™ˆ

πŸ‘‘ DESCRIPTION πŸ‘‘

so what this does is parse a series of Netlink attributes that form a flow key β€” and that flow key must take the same form accepted by flow_from_nlattrs, periodt. but it only wants enough of it to get the metadata, i.e. the parts of the flow key that literally cannot be extracted from the packet itself. the packet can't tell you everything, she needs a little help 🫢

⭐ IMPORTANT: this must be called before the packet key fields are filled in key. order matters bestie, do not skip the line πŸ’€

🌈 SEE ALSO 🌈


and that's the whole page, mwah πŸ’‹ β€” brought to you by ./net/openvswitch, dated October 2026, signed ovs_nla_get_flow_metadata(9) πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from