ENUM OVS_PSAMPLE_ATTR(9)
π enum ovs_psample_attr(9) β the Kernel API Manual moment
okay so bestie, welcome to this page from the Kernel API Manual, and no, it's not scary, it's literally just one little enum that tells your packet where to go get sampled. iykyk. let's get into it π«Ά
β¨ NAME β¨
enum ovs_psample_attr β the attrs for the %OVS_ACTION_ATTR_PSAMPLE action. that's it, that's the vibe check π
π¦ SYNOPSIS π¦
here's the whole thing, no crumbs:
enum ovs_psample_attr {
OVS_PSAMPLE_ATTR_GROUP ,
OVS_PSAMPLE_ATTR_COOKIE
};
two members. two. and they're both serving π
πΈ Constants πΈ
OVS_PSAMPLE_ATTR_GROUPβ a 32-bit number that IDs where the sample came from. it's giving "who sent me" energy, honestly πOVS_PSAMPLE_ATTR_COOKIEβ an optional variable-length binary cookie stuffed with user-defined metadata. the max length isOVS_PSAMPLE_COOKIE_MAX_SIZEbytes, so don't go overboard bestie, it WILL cap you π
π₯ Description π₯
okay so basically: it sends the packet to the psample multicast group with whatever group and cookie you specified. iconic behaviour, no notes.
and the fun part? you can combine this action with the OVS_ACTION_ATTR_TRUNC action to limit the size of the sample. obsessed β cap the sample, keep the drama small π
π§ SEE ALSO π§
go read these next, bestie, they're all connected:
- Kernel file
./include/uapi/linux/openvswitch.hstruct ovs_header(9) enum ovs_datapath_attr(9)enum ovs_packet_attr(9)enum ovs_vport_type(9)enum ovs_vport_attr(9)enum ovs_vport_upcall_attr(9)enum ovs_frag_type(9)enum ovs_flow_attr(9)enum ovs_sample_attr(9)enum ovs_userspace_attr(9)struct ovs_action_push_mpls(9)struct ovs_action_add_mpls(9)struct ovs_action_push_vlan(9)enum ovs_ct_attr(9)enum ovs_nat_attr(9)struct ovs_action_push_eth(9)enum ovs_check_pkt_len_attr(9)enum ovs_action_attr(9)
fr fr, that's the whole page. nothing hidden, no secret extra options, just a cute lil enum doing its thing π
and that's a wrap on the manpage, girlypop β¨ this one comes straight from ./include/uapi/linux, dated October 2026, and it goes by enum ovs_psample_attr(9) β periodt π
π
π¦ 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