]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Update driver to use ethtool_sprintf
authorSasha Neftin <sasha.neftin@intel.com>
Mon, 12 Apr 2021 14:41:07 +0000 (17:41 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 4 Jun 2021 16:14:16 +0000 (09:14 -0700)
commitbe585d3ffdfa6d5aa83c2e6e2d613a27e37ef8d9
tree482fb969304a2534d78760cfb978a5138f7ca7c8
parent17cb0c85c8a1a2014292d4a770393f93836aa693
igc: Update driver to use ethtool_sprintf

Complete to commit 336ab24e8a43 ("intel: Update drivers to use
ethtool_sprintf")
Update the igc driver to make use of ethtool_sprintf. The general idea
is to reduce code size and overhead by replacing the repeated pattern of
string printf statements and ETH_STRING_LEN counter increments.

Suggested-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_ethtool.c