net: Prevent HW-GRO and LRO features operate together
authorBen Ben-ishay <benishay@nvidia.com>
Wed, 16 Dec 2020 10:32:24 +0000 (12:32 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 27 Oct 2021 02:30:38 +0000 (19:30 -0700)
commit54b2b3eccab63e0c359aad562498cd9f49a1547d
tree98dd4c021c072d51a58b6590a69c707b3fe9959a
parent7529cc7fbd9c02eda6851f3260416cbe198a321d
net: Prevent HW-GRO and LRO features operate together

LRO and HW-GRO are mutually exclusive, this commit adds this restriction
in netdev_fix_feature. HW-GRO is preferred, that means in case both
HW-GRO and LRO features are requested, LRO is cleared.

Signed-off-by: Ben Ben-ishay <benishay@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
net/core/dev.c