numam-dpdk/drivers
Matan Azrad 4278f8df47 net/tap: fix zeroed flow mask configurations
The rte_flow meaning of zero flow mask configuration is to match all
the range of the item value.
For example, the flow eth / ipv4 dst spec 1.2.3.4 dst mask 0.0.0.0
should much all the ipv4 traffic from the rte_flow API perspective.

>From some kernel perspectives the above rule means to ignore all the
ipv4 traffic (e.g. Ubuntu 16.04, 4.15.10).

Due to the fact that the tap PMD should provide the rte_flow meaning,
it is necessary to ignore the spec in case the mask is zero when it
forwards such like flows to the kernel.
So, the above rule should be translated to eth / ipv4 to get the
correct meaning.

Ignore spec configurations when the mask is zero.

Fixes: de96fe68ae ("net/tap: add basic flow API patterns and actions")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2018-08-07 22:48:53 +02:00
..
baseband baseband/turbo_sw: update for FlexRAN 1.6.0 2018-07-25 08:22:14 +02:00
bus bus/vmbus: handle EOF on IRQ read 2018-08-07 14:41:51 +02:00
common common/qat: fix offset greater than first segment 2018-08-03 09:14:24 +02:00
compress common/qat: fix offset greater than first segment 2018-08-03 09:14:24 +02:00
crypto common/qat: fix offset greater than first segment 2018-08-03 09:14:24 +02:00
event event/octeontx: remove unnecessary port start and stop 2018-07-25 14:29:17 +02:00
mempool mempool/octeontx: fix pool to aura mapping 2018-07-12 21:58:36 +02:00
net net/tap: fix zeroed flow mask configurations 2018-08-07 22:48:53 +02:00
raw raw/skeleton: implement queue count API 2018-08-01 18:25:30 +02:00
Makefile crypto/qat: move common qat files to common dir 2018-07-11 00:55:30 +02:00
meson.build build: remove duplicate checks for cflags 2018-07-26 10:09:20 +02:00