]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
staging: mt7621-eth: Refactor ethtool stats
authorKamal Heib <kamalheib1@gmail.com>
Sat, 12 May 2018 20:40:03 +0000 (23:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:05:49 +0000 (14:05 +0200)
commitd84c7b304b04d869bce0444cf0c808294c08908b
tree1690aac7f7e0c8a4505f221f0a2940f8eb33f7d7
parent49bf665801c746841dc9c44337bcbe09bf16327a
staging: mt7621-eth: Refactor ethtool stats

This patch removes the ugly macro hack to make sure hw_stats and ethtool
strings are consisten, instead define a new struct which will hold the
stat string and his index within the hw_stats struct.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-eth/ethtool.c
drivers/staging/mt7621-eth/mtk_eth_soc.h