[dpdk-dev] [dpdk-stable] [PATCH] common/sfc_efx/base: apply mask to value on match field set
Ferruh Yigit
ferruh.yigit at intel.com
Tue Jan 19 02:37:06 CET 2021
On 1/17/2021 10:21 PM, Ivan Malov wrote:
> An application may submit all-zeros masks for a given field
> to be used in two given specifications and, in the meantime,
> use different unmasked values. Later on, when compared, the
> two specifications will prove unequal, and, if the rules in
> question are outer, the client driver will have to allocate
> a separate rule for the second specification. Provided that
> all other match criteria are the same, the HW will deem the
> two outer rules being duplicates, which is in fact the case.
>
> Apply masks to values in efx_mae_match_spec_field_set() API
> to fix the issue and avoid duplicate outer rule allocations.
>
> Fixes: 370ed675a952 ("common/sfc_efx/base: support setting PPORT in match spec")
> Cc: stable at dpdk.org
>
> Reported-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> Signed-off-by: Ivan Malov <ivan.malov at oktetlabs.ru>
> Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
> Reviewed-by: Andy Moreton <amoreton at xilinx.com>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list