]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita327ebcae4209bd34f18bdcfe4d59072481d5e2d
treed6454c540ab6a192f8147173e3cf73e669de28c4
parenta53c48f13305d1e1c09096857c744495536d1d94
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