diff options
author | Miquel Raynal <miquel.raynal@free-electrons.com> | 2017-11-08 08:59:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-11 15:21:30 +0900 |
commit | e5c500eb298a9f5ef9b80d16fcea9662c89467b7 (patch) | |
tree | fb8debc9c21d37cf9195a72d26c4270d97d41800 /net/core | |
parent | fc98135928912f85e27ee41cafebf0a6cf326d0e (diff) |
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: 118d6298f6f0 ("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>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions