diff options
author | Matthew Finlay | 2016-02-22 17:17:32 +0100 |
---|---|---|
committer | David S. Miller | 2016-02-24 19:50:22 +0100 |
commit | b3f63c3d5e2cbb9c800516ef47e32d8cb0cf237b (patch) | |
tree | 6265d09d2ac74362da42e232dbab52fa432d7fe1 /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | net/mlx5e: Protect en header file from redefinitions (diff) | |
download | kernel-qcow2-linux-b3f63c3d5e2cbb9c800516ef47e32d8cb0cf237b.tar.gz kernel-qcow2-linux-b3f63c3d5e2cbb9c800516ef47e32d8cb0cf237b.tar.xz kernel-qcow2-linux-b3f63c3d5e2cbb9c800516ef47e32d8cb0cf237b.zip |
net/mlx5e: Add netdev support for VXLAN tunneling
If a VXLAN udp dport is added to device it will:
- Configure the hardware to offload the port (up to the max
supported).
- Advertise NETIF_F_GSO_UDP_TUNNEL and supported hw_enc_features.
Signed-off-by: Matthew Finlay <matt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 786a2471ec0e..a700c5713226 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -501,6 +501,11 @@ struct mlx5e_vlan_db { bool filter_disabled; }; +struct mlx5e_vxlan_db { + spinlock_t lock; /* protect vxlan table */ + struct radix_tree_root tree; +}; + struct mlx5e_flow_table { int num_groups; struct mlx5_flow_table *t; @@ -535,6 +540,7 @@ struct mlx5e_priv { struct mlx5e_flow_tables fts; struct mlx5e_eth_addr_db eth_addr; struct mlx5e_vlan_db vlan; + struct mlx5e_vxlan_db vxlan; struct mlx5e_params params; spinlock_t async_events_spinlock; /* sync hw events */ |