---
title: "TC on ingress and egress"
---

> Documentation Index
> Fetch the complete documentation index at: https://example.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TC on ingress and egress

[TC](https://example.com/ebpf-field-guide/glossary/#tc) (`cls_bpf` / modern `tcx` links) runs just after `sk_buff` creation on ingress and before driver transmit on egress. It sees *both* directions, VLAN tags, mark bits, and pod virtual interfaces (`veth`).

That makes TC the workhorse for Kubernetes CNIs and packet capture agents: our `agility-ebpf-listen` pairs XDP ingress with TC egress on each NF pod's `eth0`.

## What changed

- Ingress-only XDP → symmetric ingress + egress visibility
- Raw frame bytes → full sk_buff helpers & checksums
- Legacy qdisc attach → composable FD-scoped tcx links

Source: https://example.com/ebpf-field-guide/networking-and-packet-path/networking-hooks/tc-hooks/index.mdx
