net/ice: fix flow API switch filter
authorWei Zhao <wei.zhao1@intel.com>
Tue, 16 Jul 2019 02:36:38 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commita3ffaccbf6d242021f231d0b7b313f2768562b4d
treeac2aa122a50e3e8126b8c1d6dd1a0dd14be4c750
parentf24a1b996fd03dda7f3ecbff60a3974d5afb4266
net/ice: fix flow API switch filter

When pattern has ETH, it may contain two kinds of lookup
parameters, MAC and ethertype.

So increasing item number for memory malloc in order
to reserve one more memory slot for ETH which may
consume 2 lookup items.

Fixes: 57c4f2693588 ("net/ice: enable switch filter")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c