net: l2tp_eth: provide tx_dropped counter
authorEric Dumazet <edumazet@google.com>
Thu, 28 Jun 2012 20:15:13 +0000 (20:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 07:52:32 +0000 (00:52 -0700)
commitb8c8430726e5bd552e01dacc5a44f3f83f7446ca
treee966e64a7bb8a2451048b7e73c0c4aa9a8db40a3
parenta777c892cea917b6c67c61f8dff47d8caae7b8a1
net: l2tp_eth: provide tx_dropped counter

Change l2tp_xmit_skb() to return NET_XMIT_DROP in case skb is dropped.

Use kfree_skb() instead dev_kfree_skb() for drop_monitor pleasure.

Support tx_dropped counter for l2tp_eth

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_eth.c