STRUCT VIRTCHNL2_VPORT_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the struct virtc..._vport_stats(9) page from the Kernel API Manual 🫢✨ we are so back.

struct virtchnl2_vport_stats β€” Vport statistics. that's it, that's the name, and it's giving "I count packets for a living" πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

struct virtchnl2_vport_stats {
    __le32 vport_id;
    u8 pad[4];
    __le64 rx_bytes;
    __le64 rx_unicast;
    __le64 rx_multicast;
    __le64 rx_broadcast;
    __le64 rx_discards;
    __le64 rx_errors;
    __le64 rx_unknown_protocol;
    __le64 tx_bytes;
    __le64 tx_unicast;
    __le64 tx_multicast;
    __le64 tx_broadcast;
    __le64 tx_discards;
    __le64 tx_errors;
    __le64 rx_invalid_frame_length;
    __le64 rx_overflow_drop;
};

πŸ¦‹ Members πŸ¦‹

  • vport_id β€” Vport id. the little ID badge for your vport πŸͺͺ
  • pad β€” Padding. no thoughts, just padding 🫢
  • rx_bytes β€” Received bytes. byte counter goes brrr πŸ’–
  • rx_unicast β€” Received unicast packets. one-to-one packet slay ✨
  • rx_multicast β€” Received multicast packets. group-chat packet energy πŸŽ€
  • rx_broadcast β€” Received broadcast packets. yelling to everyone, respectfully πŸ“£
  • rx_discards β€” Discarded packets on receive. sad girl hours 😭
  • rx_errors β€” Receive errors. πŸ’€
  • rx_unknown_protocol β€” Unlnown protocol. (yes, the page says "Unlnown" πŸ˜­πŸ™ˆ β€” we're keeping it exactly as written, bestie)
  • tx_bytes β€” Transmitted bytes. sending bytes into the world πŸ’Œ
  • tx_unicast β€” Transmitted unicast packets. direct message vibes 🫢
  • tx_multicast β€” Transmitted multicast packets. group project energy 🌈
  • tx_broadcast β€” Transmitted broadcast packets. announcement era πŸ“’
  • tx_discards β€” Discarded packets on transmit. not the packet being left on read 😭
  • tx_errors β€” Transmit errors. screaming crying throwing up πŸ’€
  • rx_invalid_frame_length β€” Packets with invalid frame length. the frame said "not today" 🚫
  • rx_overflow_drop β€” Packets dropped on buffer overflow. too much tea, not enough cup 🍡

🌸 Description 🌸

okay so here's the actual tea, bestie: PF/VF sends this message to CP to get the update stats by specifying the vport_id. CP responds with stats in struct virtchnl2_vport_stats. that's the whole flow, no cap πŸ’…

Associated with VIRTCHNL2_OP_GET_STATS. slay.

πŸ”— SEE ALSO πŸ”—

bestie, the cross-reference list is LONG and iconic, so buckle up 🎒:

  • Kernel file ./include/linux/net/intel/virtchnl2.h
  • enum virtchnl2_vport_type(9)
  • enum virtchnl2_queue_model(9)
  • enum virtchnl2_action_types(9)
  • enum virtchnl2_txq_sched_mode(9)
  • enum virtchnl2_rxq_flags(9)
  • enum virtchnl2_mac_addr_type(9)
  • struct virtchnl2_edt_caps(9)
  • struct virtchnl2_version_info(9)
  • struct virtchnl2_get_capabilities(9)
  • struct virtchnl2_queue_reg_chunk(9)
  • struct virtchnl2_queue_reg_chunks(9)
  • enum virtchnl2_vport_flags(9)
  • struct virtchnl2_create_vport(9)
  • struct virtchnl2_vport(9)
  • struct virtchnl2_txq_info(9)
  • struct virtchnl2_config_tx_queues(9)
  • struct virtchnl2_rxq_info(9)
  • struct virtchnl2_config_rx_queues(9)
  • struct virtchnl2_add_queues(9)
  • struct virtchnl2_vector_chunk(9)
  • struct virtchnl2_vector_chunks(9)
  • struct virtchnl2_alloc_vectors(9)
  • struct virtchnl2_rss_lut(9)
  • struct virtchnl2_rss_hash(9)
  • struct virtchnl2_sriov_vfs_info(9)
  • struct virtchnl2_ptype(9)
  • struct virtchnl2_get_ptype_info(9)
  • struct virtchnl2_event(9)
  • struct virtchnl2_rss_key(9)
  • struct virtchnl2_queue_chunk(9)
  • struct virtchnl2_del_ena_dis_queues(9)
  • struct virtchnl2_queue_vector(9)
  • struct virtchnl2_queue_vector_maps(9)
  • struct virtchnl2_loopback(9)
  • struct virtchnl2_mac_addr_list(9)
  • struct virtchnl2_promisc_info(9)
  • enum virtchnl2_ptp_caps(9)
  • struct virtchnl2_ptp_clk_reg_offsets(9)
  • struct virtchnl2_ptp_cross_time_reg_offsets(9)
  • struct virtchnl2_ptp_clk_adj_reg_offsets(9)
  • struct virtchnl2_ptp_tx_tstamp_latch_caps(9)
  • struct virtchnl2_ptp_get_vport_tx_tstamp_caps(9)
  • struct virtchnl2_ptp_get_caps(9)
  • struct virtchnl2_ptp_tx_tstamp_latch(9)
  • struct virtchnl2_ptp_get_vport_tx_tstamp_latches(9)
  • struct virtchnl2_ptp_get_dev_clk_time(9)
  • struct virtchnl2_ptp_get_cross_time(9)
  • struct virtchnl2_ptp_set_dev_clk_time(9)
  • struct virtchnl2_ptp_adj_dev_clk_fine(9)
  • struct virtchnl2_ptp_adj_dev_clk_time(9)
  • struct virtchnl2_mem_region(9)
  • struct virtchnl2_get_lan_memory_regions(9)
  • struct virtchnl2_proto_hdr(9)
  • struct virtchnl2_proto_hdrs(9)
  • struct virtchnl2_rule_action(9)
  • struct virtchnl2_rule_action_set(9)
  • struct virtchnl2_flow_rule(9)
  • struct virtchnl2_flow_rule_info(9)
  • struct virtchnl2_flow_rule_add_del(9)

byeee bestie πŸ«ΆπŸ’– β€” source/version ./include/linux/net/intel, dated October 2026, and the title is struct virtc..._vport_stats(9). mwah πŸ’‹

πŸ“¦ where this page comes from