net/mlx5: fix raw encap/decap limit
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Wed, 18 Nov 2020 07:37:30 +0000 (07:37 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Nov 2020 20:10:05 +0000 (21:10 +0100)
commitf9210259cac7836f78893dc6b0aede8664c1077e
tree516cfb18a0d9eb1f09780d9a355af557748b9ab1
parent2f394d869b166d8bc8f249c1752472cd0fecd681
net/mlx5: fix raw encap/decap limit

The MLX5_ENCAPSULATION_DECISION_SIZE constant is used
to check the raw encap/decap actions for the raw header
size. The header is constructed of the rte_xxx_hdr
structures instead of rte items. Hence, constant
must be defined with rte_xxx_hdr structure sizes.

Fixes: 50f576d657d7 ("net/mlx5: fix VLAN actions in meter")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Suanming Mou <suanmingm@nvidia.com>
drivers/net/mlx5/mlx5_flow.h