STRUCT VLAN_PCPU_STATS(9)
π struct vlan_pcpu_stats(9) π
okay bestie, welcome to the Kernel API Manual page for struct vlan_pcpu_stats(9) β no cap, this is the moment.
πΈ NAME πΈ
struct vlan_pcpu_stats β literally the VLAN percpu rx/tx stats struct. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
here's the whole thing, character for character, do not touch:
struct vlan_pcpu_stats {
u64_stats_t rx_packets;
u64_stats_t rx_bytes;
u64_stats_t rx_multicast;
u64_stats_t tx_packets;
u64_stats_t tx_bytes;
struct u64_stats_sync syncp;
u32 rx_errors;
u32 tx_dropped;
};
she's giving per-CPU counter realness π¦
π Members π
okay so let's meet the cast, one by one, main character energy only:
rx_packetsβ number of received packets. the receipts, literally. π₯rx_bytesβ number of received bytes. more receipts, but by the byte. πrx_multicastβ number of received multicast packets. group chat packets, iykyk. π―tx_packetsβ number of transmitted packets. what we send out into the world. π€tx_bytesβ number of transmitted bytes. the send, but in bytes. β¨syncpβ synchronization point for 64bit counters. she keeps the 64bit counters from getting messy β respect her. π₯rx_errorsβ number of rx errors. not iconic but we must report them. πtx_droppedβ number of tx drops. rip to those, fr fr. π
π SEE ALSO π
Kernel file ./include/linux/if_vlan.h β and honestly, the whole VLAN friend group showed up. say hi to:
struct vlan_ethhdr(9), struct vlan_priority_tci_mapping(9), struct vlan_dev_priv(9), eth_type_vlan(9), __vlan_insert_inner_tag(9), __vlan_insert_tag(9), vlan_insert_inner_tag(9), vlan_insert_tag(9), vlan_insert_tag_set_proto(9), __vlan_hwaccel_clear_tag(9), __vlan_hwaccel_copy_tag(9), __vlan_hwaccel_put_tag(9), __vlan_get_tag(9), __vlan_hwaccel_get_tag(9), vlan_get_tag(9), vlan_get_protocol_offset_inline(9), vlan_get_protocol(9), vlan_remove_tag(9), skb_vlan_tagged(9), skb_vlan_tagged_multi(9), vlan_features_check(9), compare_vlan_header(9)
likeβ¦ the whole roster. ate. π
π«Ά bestie this page lives in ./include/linux, officially dated October 2026, and it's out here repping the Kernel API Manual β that's the sign-off, mwah, slay, 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