mbox series

[bpf,v2,0/3] two bug fixes for sockmap

Message ID 20230803064838.108784-1-xukuohai@huaweicloud.com (mailing list archive)
Headers show
Series two bug fixes for sockmap | expand

Message

Xu Kuohai Aug. 3, 2023, 6:48 a.m. UTC
From: Xu Kuohai <xukuohai@huawei.com>

Two bug fixes and a test case for sockmap.

v2:
add a test case

v1:
https://lore.kernel.org/bpf/20230728105649.3978774-1-xukuohai@huaweicloud.com/
https://lore.kernel.org/bpf/20230728105717.3978849-1-xukuohai@huaweicloud.com


Xu Kuohai (3):
  bpf, sockmap: Fix map type error in sock_map_del_link
  bpf, sockmap: Fix bug that strp_done cannot be called
  selftests/bpf: Add sockmap test for redirecting partial skb data

 include/linux/skmsg.h                         |  1 +
 net/core/skmsg.c                              | 10 ++-
 net/core/sock_map.c                           | 10 +--
 .../selftests/bpf/prog_tests/sockmap_listen.c | 77 +++++++++++++++++++
 .../selftests/bpf/progs/test_sockmap_listen.c | 14 ++++
 5 files changed, 105 insertions(+), 7 deletions(-)