]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb275e2806585b68ed76acdb554871fd012771048
tree3c8f2ebe3cf7a94184db39ee6cc1f3223f7e7e47
parent03000655a31abe4cdf13dce4ab5b70561b867cb9
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