sfc: Implement message level control
Replace EFX_ERR() with netif_err(), EFX_INFO() with netif_info(), EFX_LOG() with netif_dbg() and EFX_TRACE() and EFX_REGDUMP() with netif_vdbg(). Replace EFX_ERR_RL(), EFX_INFO_RL() and EFX_LOG_RL() using explicit calls to net_ratelimit(). Implement the ethtool operations to get and set message level flags, and add a 'debug' module parameter for the initial value. Signed-off-by:Ben Hutchings <bhutchings@solarflare.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/sfc/efx.c 135 additions, 88 deletionsdrivers/net/sfc/efx.c
- drivers/net/sfc/efx.h 3 additions, 2 deletionsdrivers/net/sfc/efx.h
- drivers/net/sfc/ethtool.c 32 additions, 14 deletionsdrivers/net/sfc/ethtool.c
- drivers/net/sfc/falcon.c 107 additions, 69 deletionsdrivers/net/sfc/falcon.c
- drivers/net/sfc/falcon_boards.c 16 additions, 14 deletionsdrivers/net/sfc/falcon_boards.c
- drivers/net/sfc/falcon_xmac.c 3 additions, 2 deletionsdrivers/net/sfc/falcon_xmac.c
- drivers/net/sfc/io.h 18 additions, 12 deletionsdrivers/net/sfc/io.h
- drivers/net/sfc/mcdi.c 56 additions, 42 deletionsdrivers/net/sfc/mcdi.c
- drivers/net/sfc/mcdi_mac.c 4 additions, 4 deletionsdrivers/net/sfc/mcdi_mac.c
- drivers/net/sfc/mcdi_phy.c 11 additions, 9 deletionsdrivers/net/sfc/mcdi_phy.c
- drivers/net/sfc/mdio_10g.c 23 additions, 16 deletionsdrivers/net/sfc/mdio_10g.c
- drivers/net/sfc/mdio_10g.h 2 additions, 1 deletiondrivers/net/sfc/mdio_10g.h
- drivers/net/sfc/net_driver.h 6 additions, 29 deletionsdrivers/net/sfc/net_driver.h
- drivers/net/sfc/nic.c 124 additions, 95 deletionsdrivers/net/sfc/nic.c
- drivers/net/sfc/qt202x_phy.c 24 additions, 18 deletionsdrivers/net/sfc/qt202x_phy.c
- drivers/net/sfc/rx.c 34 additions, 22 deletionsdrivers/net/sfc/rx.c
- drivers/net/sfc/selftest.c 73 additions, 53 deletionsdrivers/net/sfc/selftest.c
- drivers/net/sfc/siena.c 25 additions, 17 deletionsdrivers/net/sfc/siena.c
- drivers/net/sfc/tenxpress.c 7 additions, 5 deletionsdrivers/net/sfc/tenxpress.c
- drivers/net/sfc/tx.c 24 additions, 17 deletionsdrivers/net/sfc/tx.c
Loading
Please register or sign in to comment