]> git.proxmox.com Git - mirror_ovs.git/commit - lib/tc.c
tc: Limit the max action number to 16
authorChris Mi <chrism@mellanox.com>
Wed, 16 Oct 2019 08:37:14 +0000 (11:37 +0300)
committerSimon Horman <simon.horman@netronome.com>
Fri, 18 Oct 2019 08:56:44 +0000 (10:56 +0200)
commitd0fbb09f907b9a5c02cf8f9b04ed03bee3516504
tree716672e2e516eb685c7dcd9d8152f0f13e6d1647
parent63c2321dbac146d1fa8087ff9656872a69ddf842
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@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
lib/netdev-offload-tc.c
lib/tc.c
lib/tc.h