STRUCT VIRTCHNL2_EVENT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct virtchnl2_event(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ β€” we're doing a whole deep-dive on struct virtchnl2_event and honestly? it's giving "tiny struct, big responsibilities." buckle up πŸŽ€


🌸 NAME 🌸

struct virtchnl2_event β€” Event info. that's it, that's the vibe. πŸ’…


✨ SYNOPSIS ✨

struct virtchnl2_event {
    __le32 event;
    __le32 link_speed;
    __le32 vport_id;
    u8 link_status;
    u8 pad;
    __le16 reserved;
 };

look at her. six fields, zero notes, absolute icon behavior πŸ‘‘ (yes there's a stray space before that closing brace in the original and no, we do not fix it, we respect the source πŸ’€).


πŸ¦‹ Members πŸ¦‹

oke so let's go member by member, no skipping, we're doing this properly 🫢

  • event β€” the event opcode. like, which event is this? check out enum virtchnl2_event_codes for the full menu πŸ“
  • link_speed β€” the link speed, handed to you in Mbps. yes Mbps, write it down πŸ”₯
  • vport_id β€” the Vport ID. literally what it says πŸ’œ
  • link_status β€” the link status. the vibe check of the physical link, if you will ✨
  • pad β€” padding. it's just sitting there being padding, we love a supporting character πŸ™ˆ
  • reserved β€” reserved. do not get creative with it, bestie, hands off 😭

🌈 Description 🌈

so here's the lore: the CP sends this message to inform the PF/VF driver of events that may affect it. that's the whole point of her existence πŸ’…

and the best part? No direct response is expected from the driver β€” she's not waiting on a reply text, she's just letting you know πŸ‘‘ though the driver may generate other messages in response to this one, so like… read the room, y'know? πŸ‘€

this whole thing is Associated with VIRTCHNL2_OP_EVENT. periodt. πŸ”₯

ngl this is a notification, not a conversation β€” don't go sending a response back and making it weird πŸ’€

🧚 SEE ALSO 🧚

the full squad, in order, all of them, no cap β€” straight outta the 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_vport_stats(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)

like, that is a lot of friends and every single one of them is linked above, iykyk πŸ’œ


okay that's the whole page bestie, you ate that 🫢✨ β€” this cutie lives in ./include/linux/net/intel, she's dated October 2026, and she's filed under struct virtchnl2_event(9). mwah πŸ’‹

πŸ“¦ where this page comes from