comparison src/event/quic/ngx_event_quic_transport.h @ 8676: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 046c951e393a
children c57b6fc90f90
comparison
equal deleted inserted replaced
8675:d3747ba486e7 8676:7df607cb2d11
351 ngx_int_t ngx_quic_parse_transport_params(u_char *p, u_char *end, 351 ngx_int_t ngx_quic_parse_transport_params(u_char *p, u_char *end,
352 ngx_quic_tp_t *tp, ngx_log_t *log); 352 ngx_quic_tp_t *tp, ngx_log_t *log);
353 ssize_t ngx_quic_create_transport_params(u_char *p, u_char *end, 353 ssize_t ngx_quic_create_transport_params(u_char *p, u_char *end,
354 ngx_quic_tp_t *tp, size_t *clen); 354 ngx_quic_tp_t *tp, size_t *clen);
355 355
356 void ngx_quic_dcid_encode_key(u_char *dcid, uint64_t key);
357
356 #endif /* _NGX_EVENT_QUIC_WIRE_H_INCLUDED_ */ 358 #endif /* _NGX_EVENT_QUIC_WIRE_H_INCLUDED_ */