netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] inet_diag: make dumps faster with simple filters
@ 2025-08-28 10:27 Eric Dumazet
  2025-08-28 10:27 ` [PATCH net-next 1/5] inet_diag: annotate data-races in inet_diag_msg_common_fill() Eric Dumazet
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Eric Dumazet @ 2025-08-28 10:27 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni, Neal Cardwell
  Cc: Simon Horman, Kuniyuki Iwashima, Willem de Bruijn, netdev,
	eric.dumazet, Eric Dumazet

inet_diag_bc_sk() pulls five cache lines per socket,
while most filters only need the two first ones.

We can change it to only pull needed cache lines,
to make things like "ss -temoi src :21456" much faster.

First patches (1-3) are annotating data-races as a first step.

Eric Dumazet (5):
  inet_diag: annotate data-races in inet_diag_msg_common_fill()
  tcp: annotate data-races in tcp_req_diag_fill()
  inet_diag: annotate data-races in inet_diag_bc_sk()
  inet_diag: change inet_diag_bc_sk() first argument
  inet_diag: avoid cache line misses in inet_diag_bc_sk()

 include/linux/inet_diag.h |  7 +++-
 net/ipv4/inet_diag.c      | 85 ++++++++++++++++++++++-----------------
 net/ipv4/raw_diag.c       | 10 ++---
 net/ipv4/tcp_diag.c       | 12 +++---
 net/ipv4/tcp_output.c     |  2 +-
 net/ipv4/udp_diag.c       | 10 ++---
 net/mptcp/mptcp_diag.c    | 15 ++-----
 7 files changed, 70 insertions(+), 71 deletions(-)

-- 
2.51.0.268.g9569e192d0-goog


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-08-30  2:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 10:27 [PATCH net-next 0/5] inet_diag: make dumps faster with simple filters Eric Dumazet
2025-08-28 10:27 ` [PATCH net-next 1/5] inet_diag: annotate data-races in inet_diag_msg_common_fill() Eric Dumazet
2025-08-29  1:09   ` Kuniyuki Iwashima
2025-08-28 10:27 ` [PATCH net-next 2/5] tcp: annotate data-races in tcp_req_diag_fill() Eric Dumazet
2025-08-29  1:11   ` Kuniyuki Iwashima
2025-08-28 10:27 ` [PATCH net-next 3/5] inet_diag: annotate data-races in inet_diag_bc_sk() Eric Dumazet
2025-08-29  1:12   ` Kuniyuki Iwashima
2025-08-28 10:27 ` [PATCH net-next 4/5] inet_diag: change inet_diag_bc_sk() first argument Eric Dumazet
2025-08-29  1:22   ` Kuniyuki Iwashima
2025-08-28 10:27 ` [PATCH net-next 5/5] inet_diag: avoid cache line misses in inet_diag_bc_sk() Eric Dumazet
2025-08-29  1:33   ` Kuniyuki Iwashima
2025-08-30  2:40 ` [PATCH net-next 0/5] inet_diag: make dumps faster with simple filters patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).