netfilter: xtables: stackptr should be percpu
commit f3c5c1bf (netfilter: xtables: make ip_tables reentrant) introduced a performance regression, because stackptr array is shared by all cpus, adding cache line ping pongs. (16 cpus share a 64 bytes cache line) Fix this using alloc_percpu() Signed-off-by:Eric Dumazet <eric.dumazet@gmail.com> Acked-By:
Jan Engelhardt <jengelh@medozas.de> Signed-off-by:
Patrick McHardy <kaber@trash.net>
Showing
- include/linux/netfilter/x_tables.h 1 addition, 1 deletioninclude/linux/netfilter/x_tables.h
- net/ipv4/netfilter/ip_tables.c 1 addition, 1 deletionnet/ipv4/netfilter/ip_tables.c
- net/ipv6/netfilter/ip6_tables.c 1 addition, 1 deletionnet/ipv6/netfilter/ip6_tables.c
- net/netfilter/x_tables.c 3 additions, 10 deletionsnet/netfilter/x_tables.c
Loading
Please register or sign in to comment