[ovs-git] [openvswitch/ovs] 92f6c4: tc: Limit the max action number to 16

mishuang2017 noreply at github.com
Thu Oct 24 08:31:03 UTC 2019


  Branch: refs/heads/branch-2.12
  Home:   https://github.com/openvswitch/ovs
  Commit: 92f6c44a92cc3247db94fd5fe86bf7e5cb896a91
      https://github.com/openvswitch/ovs/commit/92f6c44a92cc3247db94fd5fe86bf7e5cb896a91
  Author: Chris Mi <chrism at mellanox.com>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

  Changed paths:
    M lib/netdev-offload-tc.c
    M lib/tc.c
    M lib/tc.h

  Log Message:
  -----------
  tc: Limit the max action number to 16

Currently, ovs supports to offload max TCA_ACT_MAX_PRIO(32) actions.
But net sched api has a limit of 4K message size which is not enough
for 32 actions when echo flag is set.

After a lot of testing, we find that 16 actions is a reasonable number.
So in this commit, we introduced a new define to limit the max actions.

Fixes: 0c70132cd288("tc: Make the actions order consistent")
Signed-off-by: Chris Mi <chrism 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