]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ebpf: set number of RSS queues to a power of 2
authorEric Leblond <eric@regit.org>
Mon, 25 Feb 2019 22:54:11 +0000 (23:54 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 18 Jun 2019 05:07:02 +0000 (07:07 +0200)
This is needed as netronome can not do a division (so can't do a modulo)
in hardware.

ebpf/xdp_filter.c

index cc18c0dcad077939e9838d88ab8a68fd54e43fcd..07bf6f9d9730c2427f2e1ffbfa2bbde4c3f643de 100644 (file)
@@ -46,8 +46,8 @@
 #define GOT_TX_PEER    1
 
 /* set to non 0 to load balance in hardware mode on RSS_QUEUE_NUMBERS queues
- * and unset BUILD_CPUMAP */
-#define RSS_QUEUE_NUMBERS   40
+ * and unset BUILD_CPUMAP (number must be a power of 2 for netronome) */
+#define RSS_QUEUE_NUMBERS   32
 
 struct vlan_hdr {
     __u16      h_vlan_TCI;