STRUCT OVS_ACTION_ADD_MPLS(9)
π struct ovs_action_add_mpls(9) β like, the Kernel API Manual bestie β¨
okay so bestie, we're deep in the kernel docs rn β this is the page for struct ovs_action_add_mpls(9), and no cap, it's the argument for the %OVS_ACTION_ATTR_ADD_MPLS action. tiny struct, big main character energy π
π¦ NAME π¦
struct ovs_action_add_mpls β literally the argument for the %OVS_ACTION_ATTR_ADD_MPLS action. that's it, that's the vibe π
β¨ SYNOPSIS β¨
struct ovs_action_add_mpls {
__be32 mpls_lse;
__be16 mpls_ethertype;
__u16 tun_flags;
};
like yes, three whole members. she's compact. she's iconic. π«Ά
πΈ Members πΈ
mpls_lseβ the MPLS label stack entry to push. it's a__be32, so big-endian bestie, don't forget πmpls_ethertypeβ the ethertype to set in the encapsulating ethernet frame. (more on which values are allowed below, and trust, the list is short π)tun_flagsβ the MPLS tunnel attributes. a__u16of pure vibe. β
π₯ Description π₯
okay so this is the important part, listen up π£ β the only values mpls_ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC. that's MPLS unicast and MPLS multicast respectively, iykyk π
any other value? rejected. not even a little bit allowed. the kernel said no π
no cap, don't try to be creative with mpls_ethertype. creative = rejected. π«
π SEE ALSO π
- Kernel file
./include/uapi/linux/openvswitch.hβ structovs_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_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_psample_attr(9) - enum
ovs_action_attr(9)
like, the whole openvswitch.h friend group made it to the function π go read them too, they're all slay.
and that's the page, bestie! this one lives under ./include/uapi/linux, dated October 2026, and the header up top was struct ovs_action_add_mpls(9) from the Kernel API Manual β mwah, go push some MPLS labels responsibly π§ββοΈβ¨π
π¦ 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