common/sfc_efx/base: fix MAE match spec class comparison API
authorIvan Malov <ivan.malov@oktetlabs.ru>
Wed, 6 Jan 2021 10:06:00 +0000 (13:06 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 02:30:14 +0000 (03:30 +0100)
commit76631541aa2de49562e262af085f9e4afdeb1baf
tree37aeb1cbd8a239f17e1aadf52dc6e3e67f46f2ad
parent40f94ce9fa6217ba33cda0c42fd732b77aaf4791
common/sfc_efx/base: fix MAE match spec class comparison API

The helper exits once it encounters a field which hasn't its
capability status reported by the FW. Handle the corner case
when the two mask-value pairs match for the field, which, in
the absence of capability information, is sufficient to deem
the class unaffected by the field. Explain this in a comment.

Fixes: bb71f7e0a35a ("common/sfc_efx/base: add match specs class comparison API")
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.h
drivers/common/sfc_efx/base/efx_mae.c