net/mlx5: fix missing attribute size for drop action
authorYongseok Koh <yskoh@mellanox.com>
Wed, 10 Jan 2018 17:50:38 +0000 (09:50 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit64a5a065cfb2b468ce47b09ffe9a62859656bc26
tree00991fe84f19eef8434c1f6906bcbc32a651413c
parent6817ad38718451849b672b0584176c14a8b55b88
net/mlx5: fix missing attribute size for drop action

Adding the size of ibv_flow_spec_action_drop is missing. This can cause
overflow when converting rte_flow to ibv_flow and thus corrupt memory.

Fixes: 8086cf08b2f0 ("net/mlx5: handle RSS hash configuration in RSS flow")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c