From f270e534773e0dcddac73df36ec49e7a7b4d9a49 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 25 Feb 2019 23:54:11 +0100 Subject: [PATCH] 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. --- ebpf/xdp_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;