STRUCT VLAN_PCPU_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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