]> git.baikalelectronics.ru Git - kernel.git/commit
veth: Account for packet drops in ndo_xdp_xmit
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Thu, 11 Oct 2018 09:36:48 +0000 (18:36 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 04:58:46 +0000 (21:58 -0700)
commitb8d9cb8503bb852aea7f0ac9132a311b1cc00cb8
tree41d6732ee5278107347adf93589c5d763c5beefa
parent567f3e4f472a55b6c6c0e7fea3e5cfc5d237a6bb
veth: Account for packet drops in ndo_xdp_xmit

Use existing atomic drop counter. Since drop path is really an
exceptional case here, I'm thinking atomic ops would not hurt the
performance.
XDP packets and bytes are not counted in ndo_xdp_xmit, but will be
accounted on rx side by the following commit.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c