[ovs-git] [openvswitch/ovs] 292d5b: tc: Set 'no_percpu' flag for compatible actions

Vlad Buslov noreply at github.com
Mon Nov 11 16:02:23 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 292d5bd9bb344527e0da19433cf3e51f8a24058c
      https://github.com/openvswitch/ovs/commit/292d5bd9bb344527e0da19433cf3e51f8a24058c
  Author: Vlad Buslov <vladbu at mellanox.com>
  Date:   2019-11-11 (Mon, 11 Nov 2019)

  Changed paths:
    M acinclude.m4
    M configure.ac
    M include/linux/automake.mk
    A include/linux/netlink.h
    M include/linux/pkt_cls.h
    M lib/tc.c

  Log Message:
  -----------
  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 at mellanox.com>
Reviewed-by: Roi Dayan <roid at mellanox.com>
Signed-off-by: Simon Horman <simon.horman at netronome.com>




More information about the git mailing list