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)
commit8e8e2951e3095732d7e780c241f61ea130955a57
tree41257e97418486993cb2ea69aaadbc0524eef7f3
parent0338a14523e3864524dafb6a66c7b82e94201317
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