net/mlx4: fix UDP flow rule limitation enforcement
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 4 May 2018 15:17:44 +0000 (17:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:48 +0000 (22:31 +0100)
commitbf959ec58b5d9127f187e98de6d2d0976c111360
tree3fa209a9e17f337788c4745ac2e82c025c40a581
parentb7a7c97a40cf8c513ca4526c4734d7401907692c
net/mlx4: fix UDP flow rule limitation enforcement

For some unknown reason, priorities do not have any effect on flow rules
that happen to match UDP destination ports. Those are always matched first
regardless.

This patch is a workaround that enforces this limitation at the PMD level;
such flow rules can only be created at the highest priority level for
correctness.

Fixes: a5171594fc3b ("net/mlx4: expose support for flow rule priorities")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_flow.c
drivers/net/mlx4/mlx4_flow.h