]> git.baikalelectronics.ru Git - kernel.git/commit
liquidio: fix for iq and droq cnts going negative
authorSatanand Burla <satananda.burla@cavium.com>
Tue, 31 Jan 2017 21:04:42 +0000 (13:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2017 17:25:40 +0000 (12:25 -0500)
commit78ea312614253f984667fead0d5a0f38efc835de
tree4ebd2ed508b7a6aa5a5aba99f35308d0226fc1cf
parent310ef01f822957c69a54904e2151f49464a773cf
liquidio: fix for iq and droq cnts going negative

Flush the mmio writes before releasing spin locks.
if the maintained counts get too high > 2M force
writeback of the counts to clear them

Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h
drivers/net/ethernet/cavium/liquidio/octeon_device.c