net/ice: fix flow validation
authorQiming Yang <qiming.yang@intel.com>
Mon, 15 Jul 2019 02:23:56 +0000 (10:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:34 +0000 (14:31 +0200)
commit35c2968b23d35c057214ce29a9b11a08752c1810
treee3ef4be048c5b837b79cb41a01662d2d67dd600a
parent079239c09adb6c6160343acafa4db0213f72a905
net/ice: fix flow validation

ice_flow_valid_attr will return zero on success and a negative value
on error.
Current return value check logic is opposite of the expected behavior.
This patch fixes this issue.

Fixes: d76116a4678f ("net/ice: add generic flow API")
Cc: stable@dpdk.org
Signed-off-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/ice/ice_generic_flow.c