mbox series

[net-next,0/5] tcp: add skb->sk to more control packets

Message ID 20241004191644.1687638-1-edumazet@google.com (mailing list archive)
Headers show
Series tcp: add skb->sk to more control packets | expand

Message

Eric Dumazet Oct. 4, 2024, 7:16 p.m. UTC
Currently, TCP can set skb->sk for a variety of transmit packets.

However, packets sent on behalf of a TIME_WAIT sockets do not
have an attached socket.

Same issue for RST packets.

We want to change this, in order to increase eBPF program
capabilities.

This is slightly risky, because various layers could
be confused by TIME_WAIT sockets showing up in skb->sk.

Eric Dumazet (5):
  net: add TIME_WAIT logic to sk_to_full_sk()
  net_sched: sch_fq: prepare for TIME_WAIT sockets
  net: add skb_set_owner_edemux() helper
  ipv6: tcp: give socket pointer to control skbs
  ipv4: tcp: give socket pointer to control skbs

 include/net/inet_sock.h |  4 +++-
 include/net/ip.h        |  3 ++-
 include/net/sock.h      | 19 +++++++++++++++++++
 net/core/sock.c         |  9 +++------
 net/ipv4/ip_output.c    |  5 ++++-
 net/ipv4/tcp_ipv4.c     |  4 ++--
 net/ipv4/tcp_output.c   |  2 +-
 net/ipv6/tcp_ipv6.c     |  3 +++
 net/sched/sch_fq.c      |  3 ++-
 9 files changed, 39 insertions(+), 13 deletions(-)