net/ice: fix switch action number check
authorWei Zhao <wei.zhao1@intel.com>
Thu, 21 May 2020 07:34:11 +0000 (15:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 May 2020 15:57:07 +0000 (17:57 +0200)
commit59d3870c7facace93db794a37e136d4a9f6ef0a3
tree5e22aa5e3513bf33c46a405a07dcc4250d9e040c
parent60814f955cfdebeb1d7bb3c8c5ae6c566b15f572
net/ice: fix switch action number check

The action number for switch filter should be 1, any
other such as 0 or more than 1 is invalid.

Fixes: 3428c6b6ec1f ("net/ice: add action number check for switch")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Tested-by: Qimai Xiao <qimaix.xiao@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c