net/mlx5: E-Switch, Vport ingress/egress ACLs rules for VST mode
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:13:58 +0000 (17:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:47 +0000 (14:04 -0400)
commitdfcb1ed3c3315902e33da0fc5b0ae4c6d5086a23
tree595dce0fc71cb768e57dfcd9e9ed909dc6ea4cb9
parent5742df0f7dbe54728145bf1136540c09c7fcb0d1
net/mlx5: E-Switch, Vport ingress/egress ACLs rules for VST mode

Configure ingress and egress vport ACL rules according to
vlan and qos admin parameters.

Ingress ACL flow table rules:
1) drop any tagged packet sent from the VF
2) allow other traffic (default behavior)

Egress ACL flow table rules:
1) allow only tagged traffic with vlan_tag=vst_vid.
2) drop other traffic.

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
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h