]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Offloads shift ACL programming during enable/disable vport
authorVu Pham <vuhuong@mellanox.com>
Mon, 28 Oct 2019 23:35:22 +0000 (23:35 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:40:26 +0000 (14:40 -0700)
commit157151419d43910d1bd047d1e0c28ab81db9f5b4
tree6dee9efd8d022a1bf07b08e444d1afd69dedf496
parent5bd4f43e9e2e7916fb9e25f8e27349cc9cd2eb63
net/mlx5: E-switch, Offloads shift ACL programming during enable/disable vport

Currently legacy mode enables ACL while enabling vport, while offloads
mode enable ACL when moving to offloads mode.

Bring consistency to both modes by enabling/disabling ACL when
enabling/disabling a vport.

It also eliminates creating ingress ACL table on unused ECPF vport in
offloads mode.

Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c