net/packet: remove po->xmit
authorEric Dumazet <edumazet@google.com>
Fri, 17 Mar 2023 16:20:02 +0000 (16:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Mar 2023 10:57:54 +0000 (10:57 +0000)
commit105a201ebf3312990b96c4fbaade22e31402f8cc
tree2a80ad1832af132b1c1b6555718abaf1750cc30f
parent72abf2179969a54c16c03b1649b922ec179b364a
net/packet: remove po->xmit

Use PACKET_SOCK_QDISC_BYPASS atomic bit instead of a pointer.

This removes one indirect call in fast path,
and READ_ONCE()/WRITE_ONCE() annotations as well.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Willem de Bruijn <willemb@google.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c
net/packet/internal.h