net/mlx5e: Add missing LRO cap check
authorTariq Toukan <tariqt@mellanox.com>
Thu, 2 Jan 2020 14:17:41 +0000 (16:17 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Feb 2020 01:05:42 +0000 (17:05 -0800)
commit02377e6edf135289ebdf6ff4b40a422db4b780ff
tree3c8f2ebe3cf7a94184db39ee6cc1f3223f7e7e47
parent4229e0ea2c9936b3093990353b211bcd7802a2d5
net/mlx5e: Add missing LRO cap check

The LRO boolean state in params->lro_en must not be set in case
the NIC is not capable.
Enforce this check and remove the TODO comment.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c