]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Add common function for filling out strings
authorAlexander Duyck <alexanderduyck@fb.com>
Wed, 17 Mar 2021 00:30:36 +0000 (17:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2021 18:42:30 +0000 (11:42 -0700)
commitf6099bec4461ddc4c653d1495ee537d4b85bc873
tree7774816ad11687302b0fc973e93179e3eda1e586
parentd5842bc2c66d5e348364683bfc732a332cefe324
ethtool: Add common function for filling out strings

Add a function to handle the common pattern of printing a string into the
ethtool strings interface and incrementing the string pointer by the
ETH_GSTRING_LEN. Most of the drivers end up doing this and several have
implemented their own versions of this function so it would make sense to
consolidate on one implementation.

Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/ethtool/ioctl.c