net/ice: fix flow action validation
authorYing A Wang <ying.a.wang@intel.com>
Thu, 18 Jul 2019 01:38:42 +0000 (09:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit9740e614c907f685af1236f217fc278300f209d8
treef88016cceba265860fe0f4bb81bb473b5d79cdc7
parentb7296fcff344d6ec586888842511e41303c55fab
net/ice: fix flow action validation

Action is a list. We should check each element of the action
rather than the first one.
This patch fixes this issue.

Fixes: d76116a4678f ("net/ice: add generic flow API")

Signed-off-by: Ying A Wang <ying.a.wang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/ice_generic_flow.c