- ENTRY
- NIC DMA ring
- METADATA
- sk_buff
- HOOK LAYERS
- 3 main
- DIRECTION
- RX & TX
- ingress frame
- egress / socket
- XDP drop / redirect
A packet enters the NIC via DMA into a ring buffer, triggers a NET_RX softirq, gets wrapped in a kernel sk_buff descriptor, traverses Traffic Control (TC) and IP routing, and lands in a socket queue.
eBPF lets you attach at three altitudes along that climb: XDP at the driver, TC right after sk_buff, and socket/cgroup hooks right beside the app.