From: Andre Guedes Date: Tue, 7 Apr 2020 21:07:11 +0000 (-0700) Subject: igc: Dump ETQF registers X-Git-Tag: v5.15~3723^2~146^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81e330619e45fac4abeb01be1eb88f18c53aad46;p=platform%2Fkernel%2Flinux-starfive.git igc: Dump ETQF registers This patch adds the EType Queue Filter (ETQF) registers to the list of registers dumped by igc_get_regs(). Signed-off-by: Andre Guedes Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igc/igc_ethtool.c b/drivers/net/ethernet/intel/igc/igc_ethtool.c index 3cdb88a..c6586e2 100644 --- a/drivers/net/ethernet/intel/igc/igc_ethtool.c +++ b/drivers/net/ethernet/intel/igc/igc_ethtool.c @@ -318,6 +318,9 @@ static void igc_get_regs(struct net_device *netdev, regs_buff[188 + i] = rd32(IGC_RAH(i)); regs_buff[204] = rd32(IGC_VLANPQF); + + for (i = 0; i < 8; i++) + regs_buff[205 + i] = rd32(IGC_ETQF(i)); } static void igc_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)