From: Eric Leblond Date: Sun, 21 Apr 2019 18:57:03 +0000 (+0200) Subject: ebpf: add comment for some define in XDP filter X-Git-Tag: suricata-5.0.0-rc1~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8f4b70f0334d285555f11048c203ea908a6b13;p=thirdparty%2Fsuricata.git ebpf: add comment for some define in XDP filter --- diff --git a/ebpf/xdp_filter.c b/ebpf/xdp_filter.c index 1ab54309fe..daeb97a8f9 100644 --- a/ebpf/xdp_filter.c +++ b/ebpf/xdp_filter.c @@ -42,8 +42,11 @@ /* Increase CPUMAP_MAX_CPUS if ever you have more than 64 CPUs */ #define CPUMAP_MAX_CPUS 64 -#define USE_PERCPU_HASH 1 -#define GOT_TX_PEER 1 +/* Set it to 0 if for example you plan to use the XDP filter in a + * network card that don't support per CPU value (like netronome) */ +#define USE_PERCPU_HASH 1 +/* Set it to 0 if your XDP subsytem don't handle XDP_REDIRECT (like netronome) */ +#define GOT_TX_PEER 1 /* set to non 0 to load balance in hardware mode on RSS_QUEUE_NUMBERS queues * and unset BUILD_CPUMAP (number must be a power of 2 for netronome) */