]> 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)
commit5ca5c9f2cbdd6105a9c6146e1c285142c90a9ccb
tree41257e97418486993cb2ea69aaadbc0524eef7f3
parenta850618bee1d05ae5eb244884e0d96b54b828672
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