]> git.karo-electronics.de Git - linux-beck.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)
commit876be083b669c43203c0ee8709d749896e1d8d60
treef88727f3f84df9fd33caa69fb36c2ec6ca039f4f
parentc3771a35bebeea16c4fd94d1116010cc02b1f75e
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