"README.md" did not exist on "3751f9f29bcbc19bd10e92254a273486f150c245"
sfc: Simplify XMAC link polling
From: Steve Hodgson <shodgson@solarflare.com> Only the XMAC on Falcon needs help from the driver to poll and reset the MAC-PHY link (XAUI); GMII is a simple parallel bus and on later NICs firmware takes care of the XAUI link. Also, an XMAC interrupt currently schedules a work item which simply clears a flag (efx_nic::mac_up) to be checked by the regular monitor (or the next link reconfiguration, if that is sooner). Rename the flag to xmac_poll_required, changing its sense. Remove the needless indirection and just set the flag immediately. Call falcon_xmac_poll() directly where required. Add a new generic operation mac_op::check_fault to check the link outside of regular monitoring, as required during self-tests. (Note that this leaves us with an unused work item, but we will immediately have another use for it.) Signed-off-by:Ben Hutchings <bhutchings@solarflare.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/sfc/efx.c 0 additions, 5 deletionsdrivers/net/sfc/efx.c
- drivers/net/sfc/falcon.c 4 additions, 3 deletionsdrivers/net/sfc/falcon.c
- drivers/net/sfc/falcon.h 2 additions, 0 deletionsdrivers/net/sfc/falcon.h
- drivers/net/sfc/falcon_boards.c 2 additions, 2 deletionsdrivers/net/sfc/falcon_boards.c
- drivers/net/sfc/falcon_gmac.c 6 additions, 2 deletionsdrivers/net/sfc/falcon_gmac.c
- drivers/net/sfc/falcon_xmac.c 20 additions, 30 deletionsdrivers/net/sfc/falcon_xmac.c
- drivers/net/sfc/net_driver.h 4 additions, 6 deletionsdrivers/net/sfc/net_driver.h
- drivers/net/sfc/selftest.c 3 additions, 6 deletionsdrivers/net/sfc/selftest.c
Loading
Please register or sign in to comment