]> git.droids-corp.org - dpdk.git/commit
net/mlx5: fix entry size in construct data ipool
authorMichael Baum <michaelba@nvidia.com>
Thu, 2 Jun 2022 11:39:16 +0000 (14:39 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 5 Jun 2022 15:04:46 +0000 (17:04 +0200)
commit2192599c7541a6ad6fb32a7bd42644d1996da2aa
treec77fc1097c84dac4f2239511906199b7cdfb31db
parentdfa2f5338757ea84f39426a3068c58c9d71e8d68
net/mlx5: fix entry size in construct data ipool

The mlx5_action_construct_data structure memory is managed by ipool
named acts_ipool.

The size of one entry in this ipool is mistakenly defined as size of
rte_flow_hw structure.
This size is used to reset in the allocated part. When the size is
incorrect it resets memory that does not belong to it.

This patch defines the correct size.

Fixes: f13fab23922b ("net/mlx5: add flow jump action")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_hw.c