common/sfc_efx/base: enhance field ID check in field set API
authorIvan Malov <ivan.malov@oktetlabs.ru>
Wed, 6 Jan 2021 10:06:01 +0000 (13:06 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:14 +0000 (03:30 +0100)
commit5da37ab56e144686e5cc87153c9bd929db7c11b7
tree5316d60b13f03ab0d4878673ab893a06058a1398
parent76631541aa2de49562e262af085f9e4afdeb1baf
common/sfc_efx/base: enhance field ID check in field set API

A field ID passed to the API may point to a gap in the array
of field descriptors. Turn down such invocations as improper.

Fixes: 370ed675a952 ("common/sfc_efx/base: support setting PPORT in match spec")
Cc: stable@dpdk.org
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
drivers/common/sfc_efx/base/efx_mae.c