net/ixgbe: fix flow create in ntuple check
authorFaicker Mo <faicker.mo@ucloud.cn>
Tue, 18 Sep 2018 05:48:52 +0000 (13:48 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commitd0dd0cf06135ec043c587bf14b66ec55adde876a
tree70d015b1ad76b20c82a3baa1f6d38e292fe84f0a
parentc10cdce180a6ac535dc420376f115ca4ac44aead
net/ixgbe: fix flow create in ntuple check

In ixgbe_flow_create function, ntuple filter is parsed first. If the
flow is considered to be ntuple filter, it will not go on to judge
ethertype filter, syn filter and fdir filter.
In the function ntuple_filter_to_5tuple, 5 tuple info is checked,
but it's too late to jump over the ntuple filter if it's a fdir filter.

Fixes: 46ea969177f3 ("net/ixgbe: add ntuple support to flow parser")
Cc: stable@dpdk.org
Signed-off-by: Faicker Mo <faicker.mo@ucloud.cn>
Acked-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/ixgbe_flow.c