linux-sg2042/drivers/net/vmxnet3
Ronak Doshi 4d35d375ef vmxnet3: use gro callback when UPT is enabled
commit 3bced313b9 upstream.

Currently, vmxnet3 uses GRO callback only if LRO is disabled. However,
on smartNic based setups where UPT is supported, LRO can be enabled
from guest VM but UPT devicve does not support LRO as of now. In such
cases, there can be performance degradation as GRO is not being done.

This patch fixes this issue by calling GRO API when UPT is enabled. We
use updateRxProd to determine if UPT mode is active or not.

To clarify few things discussed over the thread:
The patch is not neglecting any feature bits nor disabling GRO. It uses
GRO callback when UPT is active as LRO is not available in UPT.
GRO callback cannot be used as default for all cases as it degrades
performance for non-UPT cases or for cases when LRO is already done in
ESXi.

Cc: stable@vger.kernel.org
Fixes: 6f91f4ba04 ("vmxnet3: add support for capability registers")
Signed-off-by: Ronak Doshi <doshir@vmware.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230323200721.27622-1-doshir@vmware.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-06 12:10:52 +02:00
..
Makefile vmxnet3: prepare for version 7 changes 2022-06-09 12:42:00 +02:00
upt1_defs.h vmxnet3: prepare for version 7 changes 2022-06-09 12:42:00 +02:00
vmxnet3_defs.h vmxnet3: use ext1 field to indicate encapsulated packet 2022-06-09 12:42:01 +02:00
vmxnet3_drv.c vmxnet3: use gro callback when UPT is enabled 2023-04-06 12:10:52 +02:00
vmxnet3_ethtool.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
vmxnet3_int.h vmxnet3: update to version 7 2022-06-09 12:42:01 +02:00