]> git.droids-corp.org - dpdk.git/commit
net/ice/base: add profile validation on switch filter
authorYuying Zhang <yuying.zhang@intel.com>
Wed, 26 Jan 2022 15:57:09 +0000 (15:57 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 9 Feb 2022 02:16:29 +0000 (03:16 +0100)
commita62f095049900b8148a739ad0a86fbfc32429326
treed9697ee588f82c48cc3db77313785cf35f421d7f
parent32e38011fc35625efdd74dc83edf7e53c54ef13e
net/ice/base: add profile validation on switch filter

Profile type was determined without validation when getting
switch field vector bitmap. It caused error when associating
profile id with given recipe if no lookup elements were given.
Add profile validation to check if the profile is existing
before getting bitmap.

Fixes: 55744222e6e2 ("net/ice/base: associate recipes by profile type")
Cc: stable@dpdk.org
Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_flex_type.h
drivers/net/ice/base/ice_protocol_type.h
drivers/net/ice/base/ice_switch.c