net/ice: fix flow validation for void item type
authorYing A Wang <ying.a.wang@intel.com>
Thu, 18 Jul 2019 01:38:41 +0000 (09:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commitb7296fcff344d6ec586888842511e41303c55fab
tree86efb24eebee918e653525565d97e31160f4801a
parent15edfab79e48de2dd8be3d8793126a7692a34d61
net/ice: fix flow validation for void item type

ice_get_flow_field should not set error if item->type is
RTE_FLOW_ITEM_TYPE_VOID.
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: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_generic_flow.c