Re: [PATCH net-next] net: mvpp2: fix GOP statistics loop start and stop conditions

2017-11-10 Thread David Miller
From: Miquel Raynal Date: Wed, 8 Nov 2017 08:59:40 +0100 > 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.

[PATCH net-next] net: mvpp2: fix GOP statistics loop start and stop conditions

2017-11-08 Thread Miquel Raynal
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