]> git.droids-corp.org - dpdk.git/commit
pipeline: fix table state memory allocation
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Thu, 10 Feb 2022 19:45:08 +0000 (19:45 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 Feb 2022 21:31:16 +0000 (22:31 +0100)
commiteb3e2c11830e4d75ff5dff20cfa70599a1613f71
treef461603460f90cbf1b2ca7735d1900824e36267f
parent8f8f6c14489ff78c6a4050a5001413b96ca32554
pipeline: fix table state memory allocation

The regular tables, selector tables and learner tables are all sharing
the table state array. The locations in this array were computed
incorrectly, leading to memory corruption issues.

Fixes: 4f59d3726147 ("pipeline: support learner tables")
Cc: stable@dpdk.org
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Harshad Narayane <harshad.suresh.narayane@intel.com>
Signed-off-by: Kamalakannan R <kamalakannan.r@intel.com>
Signed-off-by: Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com>
lib/pipeline/rte_swx_ctl.c
lib/pipeline/rte_swx_pipeline.c