]> git.baikalelectronics.ru Git - kernel.git/commit
net: net: add a core netdev->tx_dropped counter
authorEric Dumazet <edumazet@google.com>
Thu, 27 Mar 2014 15:45:56 +0000 (08:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 20:49:48 +0000 (16:49 -0400)
commit5bb83df363f2aecb39c9bf586b1b165f6e84c4bf
treeab376c7815815728d7f595e4a1b37ee303bfefc4
parent57364bc3e2c57d009c0a5d0bb8970d0e368a03f4
net: net: add a core netdev->tx_dropped counter

Dropping packets in __dev_queue_xmit() when transmit queue
is stopped (NIC TX ring buffer full or BQL limit reached) currently
outputs a syslog message.

It would be better to get a precise count of such events available in
netdevice stats so that monitoring tools can have a clue.

This extends the work done in e1bfa424eca16
("net: add a core netdev->rx_dropped counter")

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c