Mercurial > hg > nginx-quic
comparison src/event/quic/bpf/makefile @ 8269:7df607cb2d11 quic
QUIC: ngx_quic_bpf module.
The quic kernel bpf helper inspects packet payload for DCID, extracts key
and routes the packet into socket matching the key.
Due to reuseport feature, each worker owns a personal socket, which is
identified by the same key, used to create DCID.
BPF objects are locked in RAM and are subject to RLIMIT_MEMLOCK.
The "ulimit -l" command may be used to setup proper limits, if maps
cannot be created with EPERM or updated with ETOOLONG.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 25 Dec 2020 15:01:15 +0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
8268:d3747ba486e7 | 8269:7df607cb2d11 |
---|---|
1 CFLAGS=-O2 -Wall | |
2 | |
3 LICENSE=BSD | |
4 | |
5 PROGNAME=ngx_quic_reuseport_helper | |
6 RESULT=ngx_event_quic_bpf_code | |
7 DEST=../$(RESULT).c | |
8 | |
9 all: $(RESULT) | |
10 | |
11 $(RESULT): $(PROGNAME).o | |
12 LICENSE=$(LICENSE) PROGNAME=$(PROGNAME) bash ./bpfgen.sh $< > $@ | |
13 | |
14 DEFS=-DPROGNAME=\"$(PROGNAME)\" \ | |
15 -DLICENSE_$(LICENSE) \ | |
16 -DLICENSE=\"$(LICENSE)\" \ | |
17 | |
18 $(PROGNAME).o: $(PROGNAME).c | |
19 clang $(CFLAGS) $(DEFS) -target bpf -c $< -o $@ | |
20 | |
21 install: $(RESULT) | |
22 cp $(RESULT) $(DEST) | |
23 | |
24 clean: | |
25 @rm -f $(RESULT) *.o | |
26 | |
27 debug: $(PROGNAME).o | |
28 llvm-objdump -S -no-show-raw-insn $< | |
29 | |
30 .DELETE_ON_ERROR: |