linux/drivers/net/ethernet/marvell
Miquel Raynal e5c500eb29 net: mvpp2: fix GOP statistics loop start and stop conditions
GOP statistics from all ports of one instance of the driver are gathered
with one work recalled in loop in a workqueue. The loop is started when
a port is up, and stopped when a port is down. This last condition is
obviously wrong.

Fix this by having a work per port. This way, starting and stoping it
when the port is up or down will be fine, while minimizing unnecessary
CPU usage.

Fixes: 118d6298f6 ("net: mvpp2: add ethtool GOP statistics")
Reported-by: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-11 15:21:30 +09:00
..
Kconfig net: mvpp2: finally add the PPv2.2 compatible string 2017-03-09 10:12:11 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mv643xx_eth.c net: mv643xx_eth: Be drop monitor friendly 2017-08-24 21:27:09 -07:00
mvmdio.c net: mvmdio: simplify the smi read and write error paths 2017-06-16 12:27:12 -04:00
mvneta_bm.c
mvneta_bm.h
mvneta.c mvneta: Driver and hardware supports IPv6 offload, so enable it 2017-09-01 10:36:38 -07:00
mvpp2.c net: mvpp2: fix GOP statistics loop start and stop conditions 2017-11-11 15:21:30 +09:00
pxa168_eth.c drivers: net: pxa168: use setup_timer() helper. 2017-09-21 11:44:42 -07:00
skge.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
skge.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sky2.c sky2: Use seq_puts() in sky2_debug_show() 2017-04-18 13:55:11 -04:00
sky2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00