]> git.kaiwu.me - nginx.git/commit
QUIC: added BPF packet data fallback
authorSai Krishna Kumar Reddy YADAMAKANTI <s.yadamakanti@f5.com>
Tue, 29 Sep 2026 15:04:37 +0000 (15:04 +0000)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 29 Sep 2026 17:46:41 +0000 (21:46 +0400)
commitce6e7d6c12c1f21c0180805d031bb8042b19658a
treebf34bfc09cb90f1ea2146e4e25c965b8749e1c50
parentb74b5c961e687c76489482b44cedff63acd18c84
QUIC: added BPF packet data fallback

Use bpf_skb_load_bytes() in the reuseport BPF helper when the required
QUIC header bytes are not available through direct packet access.  This
keeps the direct access fast path while allowing the helper to parse the
flags byte, DCID length byte, and DCID key from non linear skb data.

A similar approach was implemented in [1].

[1] https://git.angie.software/web-server/angie/commit/4b527f5
src/event/quic/bpf/ngx_quic_reuseport_helper.c
src/event/quic/ngx_event_quic_bpf_code.c