024e95759c
In the root table, there is some limitation of total number of header modify actions, 16 or 8 for each. But in other tables, there is no such strict limitation. In an IPv6 case, the IP fields modifying will occupy more actions than that in IPv4, so the total support number should be increased in order to support as many actions as possible for an IPv6 + TCP packet. And in the meanwhile, the memory consumption should also be taken into consideration because sometimes only several actions are needed. The root table checking could also be done in low layer driver and the error code will be returned if the actions number is over the maximal supported value. Fixes: 0e9d00027686 ("net/mlx5: check maximum modify actions number") Cc: stable@dpdk.org Signed-off-by: Bing Zhao <bingz@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>