From: Jan Hák Date: Wed, 22 Mar 2023 14:14:44 +0000 (+0100) Subject: knotd: optimize configuration cache memory usage X-Git-Tag: v3.4.dev~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee3bbb03212aa31292e4931cc85db08008e15ea4;p=thirdparty%2Fknot-dns.git knotd: optimize configuration cache memory usage It saves 1 cache line --- diff --git a/src/knot/conf/base.h b/src/knot/conf/base.h index aa22723b0b..970a470c41 100644 --- a/src/knot/conf/base.h +++ b/src/knot/conf/base.h @@ -135,10 +135,6 @@ typedef struct { int srv_tcp_idle_timeout; int srv_tcp_io_timeout; int srv_tcp_remote_io_timeout; - bool srv_tcp_reuseport; - bool srv_tcp_fastopen; - bool srv_socket_affinity; - unsigned srv_dbus_event; size_t srv_udp_threads; size_t srv_tcp_threads; size_t srv_xdp_threads; @@ -147,25 +143,29 @@ typedef struct { size_t xdp_tcp_max_clients; size_t xdp_tcp_inbuf_max_size; size_t xdp_tcp_outbuf_max_size; + unsigned srv_dbus_event; uint32_t xdp_tcp_idle_close; uint32_t xdp_tcp_idle_reset; uint32_t xdp_tcp_idle_resend; size_t srv_quic_max_clients; size_t srv_quic_obuf_max_size; + const uint8_t *srv_nsid_data; + size_t srv_nsid_len; + const char *srv_ident; + const char *srv_version; uint32_t srv_quic_idle_close; + uint16_t xdp_quic; + int ctl_timeout; bool xdp_udp; bool xdp_tcp; - uint16_t xdp_quic; bool xdp_route_check; - int ctl_timeout; - const uint8_t *srv_nsid_data; - size_t srv_nsid_len; + bool srv_tcp_reuseport; + bool srv_tcp_fastopen; + bool srv_socket_affinity; bool srv_ecs; bool srv_ans_rotate; bool srv_auto_acl; bool srv_proxy_enabled; - const char *srv_ident; - const char *srv_version; bool srv_has_version; } cache;