net/mlx5: E-Switch, Enable/disable ACL tables on demand
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:14:00 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:48 +0000 (14:04 -0400)
commit01f51f2247250eb69d2fd345c498eedbb078bb56
tree93cc1e113c080775fe17372c2cc42f53b126ae8d
parentf942380c12394002efe0ca0be023e0f6fafbf29b
net/mlx5: E-Switch, Enable/disable ACL tables on demand

Enable ingress/egress ACL tables only when we need to configure ACL
rules.
Disable ingress/egress ACL tables once all ACL rules are removed.

All VF outgoing/incoming traffic need to go through the ingress/egress ACL
tables.
Adding/Removing these tables on demand will save unnecessary hops in the
flow steering when the ACL tables are empty.

Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c