ovs_nla_get_flow_metadata(9)
π 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 parsedOVS_KEY_ATTR_*Netlink attributes. that's literally the array, bestie, theOVS_KEY_ATTR_*ones, already parsed β¨attrsβ Bit mask for the netlink attributes included ina. so it's the little checklist of which entries inaare actually in play π―keyβ Receives extractedin_port,priority,tun_key,skb_markand conntrack metadata. she's getting filled in with all the good stuff πlogβ Boolean to allow kernel error logging. Normallytrue, but when probing for feature compatibility this should be passed in asfalseto suppress unnecessary error logging. so like,falsewhen 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 π
- Kernel file
./net/openvswitch/flow_netlink.c ovs_nla_get_match(9)
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
- 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