net/enic: fix filter type used for flow API
authorHyong Youb Kim <hyonkim@cisco.com>
Tue, 2 Feb 2021 00:24:23 +0000 (16:24 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 2 Feb 2021 23:48:11 +0000 (00:48 +0100)
commitd700f0d0d7074c76a94c0278315acb86f9ea30ba
tree92166ac16a1375cd2e2a567790e39e466cc8246c
parent561176361047ed180362343b8fb725390b387160
net/enic: fix filter type used for flow API

The filter type (struct filter_v2.type) should always be set to
FILTER_DPDK_1, when advanced filtering is enabled in firmware.
Otherwise, for some old firmware versions, the driver sets
it to FILTER_USNIC_IP, and attempts to install filters fail. This
behavior matches that of the now-removed flow director implementation
(enic_clsf.c).

Fixes: 26faa126d87e ("net/enic: flow API for NICs with advanced filters disabled")
Cc: stable@dpdk.org
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_flow.c