]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Add software counters to track reallocations
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 27 Sep 2018 22:36:14 +0000 (15:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 06:11:53 +0000 (23:11 -0700)
commit4136e4d3354b9ea9b982e22f1c7ddb5b9fb87b4e
treecea668d56d068aff9a40fcf16a8c7024d406b8f4
parentac77e6a302bd7895b7fab91149a269d749f21a0e
net: systemport: Add software counters to track reallocations

When inserting the TSB, keep track of how many times we had to do it and
if there was a failure in doing so, this helps profile the driver for
possibly incorrect headroom settings.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h