]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Vxlan, check maximum number of UDP ports
authorGal Pressman <galp@mellanox.com>
Mon, 25 Dec 2017 16:40:52 +0000 (18:40 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 27 Jul 2018 20:56:44 +0000 (13:56 -0700)
commit44913e53a19876e26ceccee9ca2df0ffed3246a7
tree16b0ba74eda98c033b90a09668cb3ecc8547389f
parentd824102ce8ce5c014a2587f3055ff2b8f8745501
net/mlx5e: Vxlan, check maximum number of UDP ports

The NIC has a limited number of offloaded VXLAN UDP ports (usually 4).
Instead of letting the firmware fail when trying to add more ports than
it can handle, let the driver check it on its own.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/vxlan.c
include/linux/mlx5/mlx5_ifc.h