table: fix actions with different data size
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Wed, 17 Mar 2021 11:42:07 +0000 (11:42 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 23 Mar 2021 16:24:52 +0000 (17:24 +0100)
commit75a09af1b4171f14b15ea3c4bdf5595cb4c4bba5
tree42c9b3682277d0a5fc87fcef1d7ed9a4239088bf
parent77a413017c2d22a2be0337c14be523e4675dabdd
table: fix actions with different data size

The table layer provisions an action_id and action_data_size data
bytes for each table key. This action_data_size is a maximal amount,
as some actions (depending on action_id) can require zero or less data
bytes than the maximal action_data_size. This fix allows for actions
with different data sizes to co-exist within the same table.

Fixes: d0a00966618b ("table: add exact match SWX table")
Cc: stable@dpdk.org
Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_table/rte_swx_table_em.c