Skip to content

tcp: add skb->sk to more control packets

Eric Dumazet netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 17 repliesApplied 5/5
  2. v25 patches 1 replySuperseded
  3. v15 patches 3 repliesSuperseded

Patches in v3 All 5 applied

#Subject and filesSizeRepliesApplied
1/5net: add TIME_WAIT logic to sk_to_full_sk()include/linux/bpf-cgroup.h include/net/inet_sock.h net/core/filter.c+8 -87 repliesApplied
2/5net_sched: sch_fq: prepare for TIME_WAIT socketsinclude/net/sock.h net/sched/sch_fq.c+12 -12 repliesApplied
3/5net: add skb_set_owner_edemux() helperinclude/net/sock.h net/core/sock.c net/ipv4/tcp_output.c+13 -74 repliesApplied
4/5ipv6: tcp: give socket pointer to control skbsnet/ipv6/tcp_ipv6.c+3 -02 repliesApplied
5/5ipv4: tcp: give socket pointer to control skbsinclude/net/ip.h net/ipv4/ip_output.c net/ipv4/tcp_ipv4.c+8 -42 repliesApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchKuniyuki IwashimaMartin KaFai LauBrian Vazquez
1/5R-b R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 net-next 0/5] tcp: add skb->sk to more control packets

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.

v3: also changed sk_const_to_full_sk() to address CI splat in XFRM

v2: audited all sk_to_full_sk() users and addressed Martin feedback.

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/linux/bpf-cgroup.h |  2 +-
 include/net/inet_sock.h    |  8 ++++++--
 include/net/ip.h           |  3 ++-
 include/net/sock.h         | 19 +++++++++++++++++++
 net/core/filter.c          |  6 +-----
 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 ++-
 11 files changed, 44 insertions(+), 20 deletions(-)
Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog