net: systemport: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 24 Aug 2017 22:20:41 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 01:23:20 +0000 (18:23 -0700)
commitc45182eb967af11e9482168be5be41aa22e5d321
tree155f2f680da93e5d988926eda405b6051b31ab9b
parent6c7e983b220f89e03286dc70a41c7ef3a8b409df
net: systemport: Be drop monitor friendly

Utilize dev_consume_skb_any(cb->skb) in bcm_sysport_free_cb() which is
used when a TX packet is completed, as well as when the RX ring is
cleaned on shutdown. None of these two cases are packet drops, so be
drop monitor friendly.

Suggested-by: Eric Dumazet <edumazet@gmail.com>
Fixes: 80105befdb4b ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c