]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Prevent adding the same vxlan port
authorMatthew Finlay <matt@mellanox.com>
Mon, 27 Jun 2016 09:08:36 +0000 (12:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 08:28:46 +0000 (04:28 -0400)
commitae26fdda58b9e662105a3393d7e47eb8d4b1582f
tree83b865ed7ed94fc8cebba5cbbf7efb5d82a1933b
parent42fcdb8d46b9ae4a2e67337aa9457ae06a247d0d
net/mlx5e: Prevent adding the same vxlan port

Do not allow the same vxlan udp port to be added to the device more than
once.

Fixes: 225737a81ece ("net/mlx5e: Add netdev support for VXLAN tunneling")
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>
drivers/net/ethernet/mellanox/mlx5/core/vxlan.c