mbox series

[0/2] UDP socket repair

Message ID 20210810144357.40367-1-minhquangbui99@gmail.com (mailing list archive)
Headers show
Series UDP socket repair | expand

Message

Bui Quang Minh Aug. 10, 2021, 2:43 p.m. UTC
Hi,

This series implement UDP_REPAIR sockoption for dumping the corked packet
in UDP socket's send queue. A new path is added to recvmsg() for dumping
packet's data and msg_name related information of the packet.

Thanks,
Quang Minh.

Bui Quang Minh (2):
  udp: UDP socket send queue repair
  selftests: Add udp_repair test

 include/linux/udp.h                      |   3 +-
 include/net/udp.h                        |   2 +
 include/uapi/linux/udp.h                 |   1 +
 net/ipv4/udp.c                           |  94 +++++++++-
 net/ipv6/udp.c                           |  56 +++++-
 tools/testing/selftests/net/.gitignore   |   1 +
 tools/testing/selftests/net/Makefile     |   1 +
 tools/testing/selftests/net/udp_repair.c | 218 +++++++++++++++++++++++
 8 files changed, 371 insertions(+), 5 deletions(-)
 create mode 100644 tools/testing/selftests/net/udp_repair.c

Comments

Jakub Kicinski Aug. 10, 2021, 3:12 p.m. UTC | #1
On Tue, 10 Aug 2021 21:43:57 +0700 Bui Quang Minh wrote:
> This series implement UDP_REPAIR sockoption for dumping the corked packet
> in UDP socket's send queue. A new path is added to recvmsg() for dumping
> packet's data and msg_name related information of the packet.

The second patch does not apply to net-next, please rebase.