tg3: Be drop monitor friendly
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 25 Aug 2017 00:47:11 +0000 (17:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 01:52:32 +0000 (18:52 -0700)
commit1e9d8e7ad3acd379d071e276f930f39bdebe3727
tree03c6bf949295d43f6063416e06720ac2ca768e5f
parent45c7ec9dd36c9c645c44689838c8a552730dc2fb
tg3: Be drop monitor friendly

tg3_tx() does the normal packet TX completion,
tigon3_dma_hwbug_workaround() and tg3_tso_bug() both need to allocate a
new SKB that is suitable to workaround HW bugs, and finally
tg3_free_rings() is doing ring cleanup. Use dev_consume_skb_any() for
these 3 locations to be SKB drop monitor friendly.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c