net: bcmgenet: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 24 Aug 2017 22:56:29 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 01:23:20 +0000 (18:23 -0700)
commitd4fec855905fa8bd5fb1c59f73ad2d74a944876a
tree894094448c26a44bb93079e452876565d9849657
parent4e458debbb69af0cbde5bd6430d64519d5f59274
net: bcmgenet: Be drop monitor friendly

There are 3 spots where we call dev_kfree_skb() but we are actually
just doing a normal SKB consumption: __bcmgenet_tx_reclaim() for normal
TX reclamation, bcmgenet_alloc_rx_buffers() during the initial RX ring
setup and bcmgenet_free_rx_buffers() during RX ring cleanup.

Fixes: d6707bec5986 ("net: bcmgenet: rewrite bcmgenet_rx_refill()")
Fixes: f48bed16a756 ("net: bcmgenet: Free skb after last Tx frag")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c