Hi, > -----Original Message----- > From: Bing Zhao <bi...@mellanox.com> > Sent: Monday, January 20, 2020 11:43 AM > To: Ori Kam <or...@mellanox.com>; Slava Ovsiienko > <viachesl...@mellanox.com>; Raslan Darawsheh <rasl...@mellanox.com>; > Matan Azrad <ma...@mellanox.com> > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: [PATCH v3] net/mlx5: fix modify actions support limitation > > 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") > Signed-off-by: Bing Zhao <bi...@mellanox.com> > --- > drivers/net/mlx5/mlx5_flow.h | 15 +++--- > drivers/net/mlx5/mlx5_flow_dv.c | 108 ++++++++++++++++++++++--------- > --------- > 2 files changed, 68 insertions(+), 55 deletions(-) > > diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h > index e42c98a..2e94371 100644 > --- a/drivers/net/mlx5/mlx5_flow.h > +++ b/drivers/net/mlx5/mlx5_flow.h
Added Cc: sta...@dpdk.org Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh