Skip to content

net: enable udp v6 sockets receiving v4 packets with UDP

Xin Long netdev 6 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 5 repliesApplied 2/2
  2. v42 patches 11 repliesSuperseded
  3. v3 posting 2/21 patch 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/22 patches3 repliesSuperseded
v22 patches1 replySuperseded
v12 patches1 replySuperseded

Changes in v5 from the cover letter

- See patch 2/2.

Patches in v5 All 2 applied

#Subject and filesSizeRepliesApplied
1/2udp: call udp_encap_enable for v6 sockets when enabling encapdrivers/net/bareudp.c include/net/udp.h include/net/udp_tunnel.h +2 more+11 -94 repliesApplied
2/2rxrpc: call udp_tunnel_encap_enable in rxrpc_open_socketnet/rxrpc/local_object.c+2 -51 replyApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchWillem de BruijnDavid HowellsAntonio Quartulli
1/2A-b T-b
2/2Acked-and-tested-by

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 v5 thread

Cover letter [PATCHv5 net-next 0/2] net: enable udp v6 sockets receiving v4 packets with UDP

Currently, udp v6 socket can not process v4 packets with UDP GRO, as udp_encap_needed_key is not increased when udp_tunnel_encap_enable() is called for v6 socket.

This patchset is to increase it and remove the unnecessary code in bareudp in Patch 1/2, and improve rxrpc encap_enable by calling udp_tunnel_encap_enable().

v1->v4:
- See patch 1/2.
v4->v5:
- See patch 2/2.

Xin Long (2):
udp: call udp_encap_enable for v6 sockets when enabling encap
rxrpc: call udp_tunnel_encap_enable in rxrpc_open_socket

 drivers/net/bareudp.c    | 6 ------
 include/net/udp.h        | 1 +
 include/net/udp_tunnel.h | 3 +--
 net/ipv4/udp.c           | 6 ++++++
 net/ipv6/udp.c           | 4 +++-
 net/rxrpc/local_object.c | 7 ++-----
 6 files changed, 13 insertions(+), 14 deletions(-)
Signature · 1 line
2.1.0