From: Eric Leblond Date: Mon, 25 Feb 2019 22:54:11 +0000 (+0100) Subject: ebpf: set number of RSS queues to a power of 2 X-Git-Tag: suricata-5.0.0-rc1~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f270e534773e0dcddac73df36ec49e7a7b4d9a49;p=thirdparty%2Fsuricata.git ebpf: set number of RSS queues to a power of 2 This is needed as netronome can not do a division (so can't do a modulo) in hardware. --- diff --git a/ebpf/xdp_filter.c b/ebpf/xdp_filter.c index cc18c0dcad..07bf6f9d97 100644 --- a/ebpf/xdp_filter.c +++ b/ebpf/xdp_filter.c @@ -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;