]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a166898bdaa2775b9faef8a23f3636d0226648f
tree595dce0fc71cb768e57dfcd9e9ed909dc6ea4cb9
parent06173c049a98b65bfaa423431a9a009387d41a6b
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