]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ebpf: add comment for some define in XDP filter
authorEric Leblond <eric@regit.org>
Sun, 21 Apr 2019 18:57:03 +0000 (20:57 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2019 05:07:02 +0000 (07:07 +0200)
ebpf/xdp_filter.c

index 1ab54309fe4be3211aef8e31c1ae28f2f200b6c4..daeb97a8f964503496395a7b3ce8862b5c97976c 100644 (file)
 /* 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) */