WSL2-Linux-Kernel/drivers/net/vmxnet3
Alexander Duyck 3b78b3067f vmxnet3: Update driver to use ethtool_sprintf
So this patch actually does 3 things.

First it removes a stray white space at the start of the variable
declaration in vmxnet3_get_strings.

Second it flips the logic for the string test so that we exit immediately
if we are not looking for the stats strings. Doing this we can avoid
unnecessary indentation and line wrapping.

Then finally it updates the code to use ethtool_sprintf rather than a
memcpy and pointer increment to write the ethtool strings.

Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-17 11:42:31 -07:00
..
Makefile vmxnet3: prepare for version 4 changes 2020-05-28 16:26:48 -07:00
upt1_defs.h vmxnet3: add geneve and vxlan tunnel offload support 2020-05-28 16:26:48 -07:00
vmxnet3_defs.h vmxnet3: add geneve and vxlan tunnel offload support 2020-05-28 16:26:48 -07:00
vmxnet3_drv.c vmxnet3: Remove buf_info from device accessible structures 2021-01-29 21:07:03 -08:00
vmxnet3_ethtool.c vmxnet3: Update driver to use ethtool_sprintf 2021-03-17 11:42:31 -07:00
vmxnet3_int.h vmxnet3: Remove buf_info from device accessible structures 2021-01-29 21:07:03 -08:00