sfc: Add MC BISTs to ethtool offline self test on EF10
authorJon Cooper <jcooper@solarflare.com>
Mon, 16 Sep 2013 13:18:51 +0000 (14:18 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:05:48 +0000 (22:05 +0000)
commit74cd60a4d7b4f686146efd7ed211974691f0c2c1
treed6454c540ab6a192f8147173e3cf73e669de28c4
parent512bb06c65aa25e08d42456e5a28ca6b72306062
sfc: Add MC BISTs to ethtool offline self test on EF10

To run BISTs the MC goes down in to a special mode where it will only
respond to MCDI from the testing PF, and TX, RX and event queues are
torn down. Other PFs get a message as it goes down to tell them it's
going down.

When the other PFs get this message, they check the soft status
register to tell when the MC has rebooted after BIST mode and they can
start recovery.

[bwh: Convert the test result to 1 or -1 as for earlier NICs]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/enum.h
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/selftest.c
drivers/net/ethernet/sfc/selftest.h
This page took 0.026459 seconds and 5 git commands to generate.