sfc: Rework MAC, PHY and board event handling
From: Steve Hodgson <shodgson@solarflare.com> MAC, PHY and board events may be separately enabled and signalled. Our current arrangement of chaining the polling functions can result in events being missed. Change them to be more independent. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
04cc8cacb0
commit
766ca0fa6b
@@ -221,13 +221,9 @@ static void falcon_update_stats_gmac(struct efx_nic *efx)
|
||||
mac_stats->rx_lt64 = mac_stats->rx_good_lt64 + mac_stats->rx_bad_lt64;
|
||||
}
|
||||
|
||||
static int falcon_check_gmac(struct efx_nic *efx)
|
||||
{
|
||||
return efx->phy_op->check_hw(efx);
|
||||
}
|
||||
|
||||
struct efx_mac_operations falcon_gmac_operations = {
|
||||
.reconfigure = falcon_reconfigure_gmac,
|
||||
.update_stats = falcon_update_stats_gmac,
|
||||
.check_hw = falcon_check_gmac,
|
||||
.irq = efx_port_dummy_op_void,
|
||||
.poll = efx_port_dummy_op_void,
|
||||
};
|
||||
|
Reference in New Issue
Block a user