]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Reset driver's MAC stats after MC reboot seen
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 1 Oct 2012 19:58:35 +0000 (20:58 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Sat, 1 Dec 2012 02:00:10 +0000 (02:00 +0000)
commitb5d5c798dacf8a361c33ed402e7b508b47cc7f79
treef88727f3f84df9fd33caa69fb36c2ec6ca039f4f
parent36261b3cb186cf1624efeddfbeb7ebe2fc9e3cdc
sfc: Reset driver's MAC stats after MC reboot seen

If the MC reboots then the stats it reports to us will have been
reset.  We need to reset ours to get efx_update_diff_stat() working
properly.

(Ideally we would maintain stats across the reboot, but as this should
only happen immediately after a firmware upgrade it's not really worth
the trouble.)

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c