]> 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)
commit55f9dc4534bc08db0ec1ed8543528f9867db5dc5
tree16b0ba74eda98c033b90a09668cb3ecc8547389f
parentb99a92ac0d5178fe889d53203caa25e830774e43
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