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)
commita5d78ce7936c9f6fd5a75c1d6b51587c6d05e7b3
treecea668d56d068aff9a40fcf16a8c7024d406b8f4
parentaa6ca0ec71d8028ec712058efa3d93a54e2bb13e
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