table: relax requirements for entry action data
authorChurchill Khangar <churchill.khangar@intel.com>
Fri, 26 Mar 2021 20:22:24 +0000 (20:22 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 18:21:18 +0000 (20:21 +0200)
commit1af0e07b2758944905389d7a0ae15499d9c4e210
tree21b5ac216004cfcd5b578444c0e140da2bc91c9a
parent97005a6665f64f920695b0a64cb35bf7cfbd4c3d
table: relax requirements for entry action data

Currently, the table entry action data is required to be NULL when the
action data size is zero. We now require that action data is ignored
when the action data size is zero. This is to allow for a table entry
instance to be allocated once with max action data size for the table
and reused repeatedly for actions of different sizes, including zero.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
lib/librte_pipeline/rte_swx_ctl.c
lib/librte_table/rte_swx_table.h