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)
commit22a65aa8b1a84ca429c0fc8415dee5681ab36eb3
tree16b0ba74eda98c033b90a09668cb3ecc8547389f
parenta082c4f4f022ac5c05c7f26f2dab2982d11d6adb
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