]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net/mlx5: E-Switch, Add control for encapsulation
authorRoi Dayan <roid@mellanox.com>
Sun, 25 Sep 2016 11:27:17 +0000 (14:27 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 22 Apr 2017 17:26:40 +0000 (20:26 +0300)
commit7768d1971de676b0e12f57450ba7a6b38ff4cfb2
treefef447a29b79a97cb1537314b800220e7f1548dc
parent1967ce6ea5c8a03e5f963b639fe33ece60b2dc91
net/mlx5: E-Switch, Add control for encapsulation

Implement the devlink e-switch encapsulation control set and get
callbacks. Apply the value set by the user on the switchdev offloads
mode when creating the fast FDB table where offloaded rules will be set.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@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
drivers/net/ethernet/mellanox/mlx5/core/main.c