aboutgitcodebugslistschat
path: root/contrib/selinux
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-01-05 15:26:21 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-01-13 01:07:01 +0100
commitc9e193b5ae0d785f9d77adf2ce196393a1ab205c (patch)
tree4e9cd01a3c8c388d5ef9be874fa308d52d836ed6 /contrib/selinux
parent4eb54fd2e792e2c168588c2789e8d5d5977db75d (diff)
downloadpasst-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.tar
passt-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.tar.gz
passt-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.tar.bz2
passt-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.tar.lz
passt-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.tar.xz
passt-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.tar.zst
passt-c9e193b5ae0d785f9d77adf2ce196393a1ab205c.zip
udp: Don't handle tap receive batch size calculation within a #define
UDP_MAX_FRAMES gives the maximum number of datagrams we'll ever handle as a batch for sizing our buffers and control structures. The subtly different UDP_TAP_FRAMES gives the maximum number of datagrams we'll actually try to receive at once for tap packets in the current configuration. This depends on the mode, meaning that the macro has a non-obvious dependency on the usual 'c' context variable being available. We only use it in one place, so it makes more sense to open code this. Add an explanatory comment while we're there. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/selinux')
0 files changed, 0 insertions, 0 deletions