aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorSriram <srk@ti.com>2009-10-06 22:44:30 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-13 15:02:53 -0400
commit0fe7463a35aadfaf22d1ca58325ab3851b8d757c (patch)
treea61b3d59ebc28c3eea7134680e250d2ddd261a40 /net/ipv4
parentdaf9df6d8d0f5a4a406632d4da027655d065d3ba (diff)
TI DaVinci EMAC: Clear statistics register properly.
The mechanism to clear the statistics register is dependent on the status of GMIIEN bit in MAC control register. If the GMIIEN bit is set, the stats registers are write to decrement. If the GMIIEN bit is cleared, the stats registers are plain read/write registers. The stats register clearing operation must take into account the current state of GMIIEN as it can be cleared when the interface is brought down. With existing implementation logic, querying for interface stats when the interface is down, can corrupt the statistics counters. This patch examines the GMIIEN bit status in MAC_CONTROL register before choosing an appropriate mask for clearing stats registers. Signed-off-by: Sriramakrishnan <srk@ti.com> Acked-by: Chaithrika U S <chaithrika@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions