]> git.proxmox.com Git - mirror_ovs.git/commit - acinclude.m4
tc: Set 'no_percpu' flag for compatible actions
authorVlad Buslov <vladbu@mellanox.com>
Mon, 4 Nov 2019 16:34:49 +0000 (18:34 +0200)
committerSimon Horman <simon.horman@netronome.com>
Mon, 11 Nov 2019 13:42:52 +0000 (14:42 +0100)
commit292d5bd9bb344527e0da19433cf3e51f8a24058c
tree944a9c08109601c218322292e5bf149abc6b63c7
parentc0a1df2e3f209fbf3c61b66a719b90e41636ef52
tc: Set 'no_percpu' flag for compatible actions

Recent changes in Linux kernel TC action subsystem introduced new
TCA_ACT_FLAGS_NO_PERCPU_STATS flag. The purpose of the flag is to request
action implementation to skip allocating action stats with expensive percpu
allocator and use regular built-in action stats instead. Such approach
significantly improves rule insertion rate and reduce memory usage for
hardware-offloaded rules that don't need benefits provided by percpu
allocated stats (improved software TC fast-path performance). Set the flag
for all compatible actions.

Modify acinclude.m4 to use OVS-internal pkt_cls.h implementation when
TCA_ACT_FLAGS is not defined by kernel headers and to manually define
struct nla_bitfield32 in netlink.h (new file) when it is not defined by
kernel headers.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
acinclude.m4
configure.ac
include/linux/automake.mk
include/linux/netlink.h [new file with mode: 0644]
include/linux/pkt_cls.h
lib/tc.c