common/sfc_efx/base: refine adding encap action to set
authorIvan Malov <ivan.malov@oktetlabs.ru>
Fri, 5 Nov 2021 21:54:05 +0000 (00:54 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 8 Nov 2021 15:25:50 +0000 (16:25 +0100)
commit97df7281c95fccd0823cefd9cd7526b309693841
tree6db18877e24b57cac9c72435af71efb21075f7fe
parent247f0ce2a4c65d9a790d858bf82c235d9030bdc5
common/sfc_efx/base: refine adding encap action to set

1) Invalid encap. header ID is always set by default.
   Do not set it again when adding the action.

2) Encap. header ID validity check is missing in the
   action set allocation helper. Introduce it.

Fixes: 3907defa5bf0 ("common/sfc_efx/base: support adding encap action to a set")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/efx_mae.c