linux-stable/Documentation/networking/net_cachelines
Alexander Lobakin beb5a9bea8 netdevice: convert private flags > BIT(31) to bitfields
Make dev->priv_flags `u32` back and define bits higher than 31 as
bitfield booleans as per Jakub's suggestion. This simplifies code
which accesses these bits with no optimization loss (testb both
before/after), allows to not extend &netdev_priv_flags each time,
but also scales better as bits > 63 in the future would only add
a new u64 to the structure with no complications, comparing to
that extending ::priv_flags would require converting it to a bitmap.
Note that I picked `unsigned long :1` to not lose any potential
optimizations comparing to `bool :1` etc.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-09-03 11:36:43 +02:00
..
index.rst Documentations: fix net_cachelines documentation build warning 2023-12-05 20:17:03 -08:00
inet_connection_sock.rst Documentations: fix net_cachelines documentation build warning 2023-12-05 20:17:03 -08:00
inet_sock.rst Documentations: correct net_cachelines title for struct inet_sock 2024-02-28 11:25:37 +00:00
net_device.rst netdevice: convert private flags > BIT(31) to bitfields 2024-09-03 11:36:43 +02:00
netns_ipv4_sysctl.rst Documentations: fix net_cachelines documentation build warning 2023-12-05 20:17:03 -08:00
snmp.rst Documentations: fix net_cachelines documentation build warning 2023-12-05 20:17:03 -08:00
tcp_sock.rst tcp: move tp->tcp_usec_ts to tcp_sock_read_txrx group 2024-02-12 09:51:26 +00:00