net: bcmgenet: Add software counters to track reallocations
authorDoug Berger <opendmb@gmail.com>
Wed, 18 Dec 2019 00:51:15 +0000 (16:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2019 02:11:10 +0000 (18:11 -0800)
commitf1af17c0b7a51357699bba7c8cba1276c9486907
tree4b0891007774619c54d881d34f9de5c824991cb3
parente3fa85883d1566d788960c0f31866a26c898c070
net: bcmgenet: 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: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h