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: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
75051ce4c5
commit
9379b39945
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue