diff options
author | Eric Dumazet <edumazet@google.com> | 2023-03-16 01:10:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-17 08:52:06 +0000 |
commit | 61edf479818e63978cabd243b82ca80f8948a313 (patch) | |
tree | fefafc24a20f9a87bbafde35a1e60facc33af127 /net/packet/internal.h | |
parent | 50d935eafee292fc432d5ac8c8715a6492961abc (diff) | |
download | linux-61edf479818e63978cabd243b82ca80f8948a313.tar.gz linux-61edf479818e63978cabd243b82ca80f8948a313.tar.bz2 linux-61edf479818e63978cabd243b82ca80f8948a313.zip |
net/packet: convert po->running to an atomic flag
Instead of consuming 32 bits for po->running, use
one available bit in po->flags.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/internal.h')
-rw-r--r-- | net/packet/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/internal.h b/net/packet/internal.h index 2521176807f4..58f042c63172 100644 --- a/net/packet/internal.h +++ b/net/packet/internal.h @@ -117,7 +117,6 @@ struct packet_sock { spinlock_t bind_lock; struct mutex pg_vec_lock; unsigned long flags; - unsigned int running; /* bind_lock must be held */ int pressure; int ifindex; /* bound device */ __be16 num; @@ -146,6 +145,7 @@ enum packet_sock_flags { PACKET_SOCK_TX_HAS_OFF, PACKET_SOCK_TP_LOSS, PACKET_SOCK_HAS_VNET_HDR, + PACKET_SOCK_RUNNING, }; static inline void packet_sock_flag_set(struct packet_sock *po, |