mlx5: refactor special flows handling
authorYaacov Hazan <yaacovh@mellanox.com>
Thu, 3 Mar 2016 14:26:40 +0000 (15:26 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:52:17 +0000 (18:52 +0100)
commit083c2dd317762cb7784b0ff2b3bcb1cad875b746
tree2fcf328bdf5184069ed64552b816f406a4ddc550
parenta94fda95edd3af5dfd1a1a79a2b3c9f30cf407fc
mlx5: refactor special flows handling

Merge redundant code by adding a static initialization table to manage
promiscuous and allmulticast (special) flows.

New function priv_rehash_flows() implements the logic to enable/disable
relevant flows in one place from any context.

Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_rxmode.c
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.h
drivers/net/mlx5/mlx5_trigger.c