net/ice: fix VF index check for DCF
authorWei Zhao <wei.zhao1@intel.com>
Thu, 13 Aug 2020 02:14:41 +0000 (10:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commitcb97e595d9d3b316690c8d5ac688240d2ba1e551
tree88b6a7852f6b4dc8499be36ab8da77f61a787609
parent58f36c8c421932efee7fba106bf450bbc170101e
net/ice: fix VF index check for DCF

The vf index in rte_flow command need to check in order that not larger
than actual vf number. Also change some error log for wrong action.

Fixes: 829c3106812d ("net/ice: enable switch flow on DCF")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Tested-by: Nannan Lu <nannan.lu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c