~/talk

A BPF map for online packet classification

Talkat Linux Plumbers Conference 2022 · 2022-09-12..09-14· [networking]
links:none on file
slides:none on file

A new single BPF wildcard map implements a hash‑based tuple/Double‑Merge classifier in kernel land with a user API described via a BTF/wildcard descriptor passed at map create and libbpf macros to generate that descriptor. Benchmarks show lookups around ~120 ns for 100k four‑tuple IPv4 rules (unsuccessful lookups cost ~2×), preallocated maps hit ~100 ns for lookups and updates, and non‑preallocated updates sit under a half‑microsecond. It supports port ranges and outperforms LPM for simple prefix cases.

AI-written summary · about

  1. 0:00Introduction to BPF packet classification
  2. 1:50Use cases in Siloam ecosystem
  3. 5:28Packet classification algorithms overview
  4. 7:34Hash-based Tuple space search
  5. 10:48Tuple merge optimizations
  6. 14:24Static table allocation trade-offs
  7. 17:19API design decisions
  8. 18:24Map definition and usage example
  9. 23:26Kernel changes required
  10. 24:10Performance benchmarks results
  11. 27:45Summary and future work
  12. 28:14Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.