Commit 9379b399 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Jeff Kirsher
Browse files

igb: minor ethool regdump amendment



This patch has no functional impact and it is just a preparation
for the following patch. It removes an early return from the
'igb_get_regs()' function by moving the 82576-only registers
dump into an "if" block. With this preparation, we can dump more
non-82576 registers at the end of this function.

Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 75051ce4
Loading
Loading
Loading
Loading
+35 −35
Original line number Diff line number Diff line
@@ -675,8 +675,7 @@ static void igb_get_regs(struct net_device *netdev,
		regs_buff[554] = adapter->stats.b2ogprc;
	}

	if (hw->mac.type != e1000_82576)
		return;
	if (hw->mac.type == e1000_82576) {
		for (i = 0; i < 12; i++)
			regs_buff[555 + i] = rd32(E1000_SRRCTL(i + 4));
		for (i = 0; i < 4; i++)
@@ -711,6 +710,7 @@ static void igb_get_regs(struct net_device *netdev,
		for (i = 0; i < 12; i++)
			regs_buff[727 + i] = rd32(E1000_TDWBAH(i + 4));
	}
}

static int igb_get_eeprom_len(struct net_device *netdev)
{