Skip to content

The Linux packet pipeline

Step 1 of 9Concept
ENTRY
NIC DMA ring
METADATA
sk_buff
HOOK LAYERS
3 main
DIRECTION
RX & TX
  • ingress frame
  • egress / socket
  • XDP drop / redirect
XDP, TC & Socket Hooks, step 1 of 9

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.

Type to search…

↑↓ navigate↵ selectEsc close