]> git.baikalelectronics.ru Git - kernel.git/commit
net/packet: make tp_drops atomic
authorEric Dumazet <edumazet@google.com>
Wed, 12 Jun 2019 16:52:30 +0000 (09:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 01:52:14 +0000 (18:52 -0700)
commit44ffdbead70fcdae43d9db351c01813db0d8a3d3
tree41257e97418486993cb2ea69aaadbc0524eef7f3
parent8f448d8f220e4dc2b3ad361479afb46d5fa809af
net/packet: make tp_drops atomic

Under DDOS, we want to be able to increment tp_drops without
touching the spinlock. This will help readers to drain
the receive queue slightly faster :/

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
net/packet/internal.h