STRUCT EFX_PTP_MATCH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct efx_ptp_match(9) πŸ’œ

okay so bestie, welcome to the struct efx_ptp_match(9) page β€” yes that's the kernel API manual, and yes we're reading it together, hold my iced coffee 🧊✨


🌸 NAME 🌸

struct efx_ptp_match β€” the matching structure, and where does it live? in sk_buff's cb area. that's it, that's the whole vibe. it's the little side-pocket where the packet carries its match info πŸŽ€


✨ SYNOPSIS ✨

here's the whole shape of her, no notes:

struct efx_ptp_match {
    u32 words[DIV_ROUND_UP(PTP_V1_UUID_LENGTH, 4)];
    unsigned long expiry;
    enum ptp_packet_state state;
 };

like, that's literally the entire struct. three members. she's lowkey minimalist πŸ’… and no, we are not skipping the array size math β€” DIV_ROUND_UP(PTP_V1_UUID_LENGTH, 4) stays exactly as written, iykyk 🧚


πŸ‘‘ Members πŸ‘‘

🌈 words

UUID and (partial) sequence number. that's the whole description, fr fr β€” the UUID plus a little bit of the sequence number, chilling in those u32 slots πŸ¦‹

⏰ expiry

the time after which the packet should be delivered irrespective of event arrival 🫢 like, bestie, no matter what the events are doing, this packet gets delivered once the clock says so. periodt.

πŸ”₯ state

the state of the packet β€” specifically whether it is ready for processing or whether that is of no interest. two moods. that's it. πŸ’€


πŸŽ€ SEE ALSO πŸŽ€

go read the kernel file ./drivers/net/ethernet/sfc/siena/ptp.c β€” that's where the whole friend group hangs out:

  • struct efx_ptp_event_rx(9)
  • struct efx_ptp_timeset(9)
  • struct efx_ptp_data(9)

and that's the page!! sending you off with a little sign-off from ./drivers/net/ethernet/sfc/siena, dated October 2026 β€” yes, the source/version and the date, cute little footer energy, we love a credited king πŸ‘‘βœ¨ bye bestie, go match some packets πŸ¦‹πŸ’–

πŸ“¦ where this page comes from