]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Enable interrupts for all management counters
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 5 Sep 2014 23:02:36 +0000 (18:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 05:37:30 +0000 (22:37 -0700)
commit909f5cae2e477caf08a82dbc3d40765b5ece2f24
tree3cf46ff0af94123ed4d150c8ea3e2f130c6457f0
parentfed69371ebbe407c767999307698876721f907a1
amd-xgbe: Enable interrupts for all management counters

As the management counters reach a threshold they will generate an
interrupt so the value can be saved and the counter reset. The
current code does not enable this interrupt on all counters. This
can result in inaccurate statistics.

Update the code to enable all the counters to generate an interrupt
when its threshold is exceeded.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c