net/packet: introduce packet_rcv_try_clear_pressure() helper
authorEric Dumazet <edumazet@google.com>
Wed, 12 Jun 2019 16:52:33 +0000 (09:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 01:52:14 +0000 (18:52 -0700)
commit9bb6cd652454969fa0ae6c52c8ebd31472d0171c
treed8fd9f39518e15bb5c6b3856043e3c14bbf412b9
parent3a2bb84e4aeab5c90d16e1cd17dbaa17631af529
net/packet: introduce packet_rcv_try_clear_pressure() helper

There are two places where we want to clear the pressure
if possible, add a helper to make it more obvious.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Willem de Bruijn <willemb@google.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c