numam-dpdk/drivers/net/mlx5
Dekel Peled ff44839929 net/mlx5: fix dirty array of actions
Previous patch changed the format of struct
mlx5_flow_dv_modify_hdr_resource, to use a flexible array for
modification actions.
In __flow_dv_translate() a union was defined with item of this struct,
and an array of maximal possible size.
Array elements are filled in several functions.
In function flow_dv_convert_action_set_reg(), array element is filled
partially, while the other fields of this array element are left
uninitialized.
This may cause failure of flow_dv_modify_hdr_resource_register()
when calling driver function with the 'dirty' array.

This patch updates flow_dv_convert_action_set_reg(), setting the
selected array element fields while clearing the other fields.
Other functions that fill the same array elements are also updated
for clarity and proofing future use.

Fixes: 024e95759c ("net/mlx5: fix modify actions support limitation")
Cc: stable@dpdk.org

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
2020-02-05 11:15:53 +01:00
..
Makefile common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
meson.build common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
mlx5_defs.h common/mlx5: share Netlink commands 2020-02-05 09:51:20 +01:00
mlx5_ethdev.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow_dv.c net/mlx5: fix dirty array of actions 2020-02-05 11:15:53 +01:00
mlx5_flow_meter.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow_verbs.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow.h net/mlx5: make FDB default rule optional 2020-02-05 09:51:20 +01:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_altivec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_neon.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_sse.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx.c net/mlx5: add Rx/Tx burst mode info 2020-02-05 09:51:21 +01:00
mlx5_rxtx.h net/mlx5: add Rx/Tx burst mode info 2020-02-05 09:51:21 +01:00
mlx5_socket.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_stats.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_trigger.c net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
mlx5_txq.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_utils.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_utils.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c net/mlx5: fix memory regions release deadlock 2020-02-05 11:15:53 +01:00
mlx5.h net/mlx5: make FDB default rule optional 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00