net/ice: fix GTP-U rule conflict
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 22 Jan 2020 05:28:24 +0000 (13:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commit89a532ba87ccf64bd53be6f2c384d5747d616612
tree9d59873b038f4b8dcd647fb752f0ce356515b97e
parenteb00a7f123664fae12b0380a7df78ee99120f9cb
net/ice: fix GTP-U rule conflict

The patch distinguishes fdir rules for GTPU with or without
extend header, so flow to match below patterns can be created
correctly.

1. eth / ipv4 / udp / gtpu teid is 10 / ...
2. eth / ipv4 / udp / gtpu teid is 10 / gtp_psc / ...
3. eth / ipv4 / udp / gtpu / gtp_psc qfi is 10 / ...
4. eth / ipv4 / udp / gtpu teid is 10 / gtp_psc is 10 / ...

Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_flow.c
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_fdir_filter.c