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)
commit220ef1f97ec19894b121f40012031c405ffc388c
tree482fb969304a2534d78760cfb978a5138f7ca7c8
parentebbf5fcb94a7f3499747b282420a1c5f7e8d1c6f
igc: Update driver to use ethtool_sprintf

Complete to commit c8d4725e985d ("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