diff options
| author | David S. Miller <[email protected]> | 2021-03-17 18:42:31 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-17 18:42:31 +0000 |
| commit | 5c9e418b0616cfdc2dd2de99e8d6d8deb1f213eb (patch) | |
| tree | eba2150dab66b6cdbe5234f7e4148dddb72878e4 /net/tipc/node.c | |
| parent | Merge tag 'mlx5-updates-2021-03-16' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
| parent | ionic: Update driver to use ethtool_sprintf (diff) | |
| download | kernel-5c9e418b0616cfdc2dd2de99e8d6d8deb1f213eb.tar.gz kernel-5c9e418b0616cfdc2dd2de99e8d6d8deb1f213eb.zip | |
Merge branch 'ethtool-strings'
Alexander Duyck says:
====================
ethtool: Factor out common code related to writing ethtool strings
This patch set is meant to be a cleanup and refactoring of common code bits
from several drivers. Specificlly a number of drivers engage in a pattern
where they will use some variant on an sprintf or memcpy to write a string
into the ethtool string array and then they will increment their pointer by
ETH_GSTRING_LEN.
Instead of having each driver implement this independently I am refactoring
the code so that we have one central function, ethtool_sprintf that does
all this and takes a double pointer to access the data, a formatted string
to print, and the variable arguments that are associated with the string.
Changes from v1:
Fixed usage of char ** vs unsigned char ** in hisilicon drivers
Changes from RFC:
Renamed ethtool_gsprintf to ethtool_sprintf
Fixed reverse xmas tree issue in patch 2
====================
Reviewed-by: Jesse Brandeburg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
