Skip to content

Split bpf_sk_lookup remote_port field

Jakub Sitnicki bpf netdev 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesApplied 2/2
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Remove remote_port range check and cast to be16 in TEST_RUN for sk_lookup (kernel test robot)

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Make remote_port field in struct bpf_sk_lookup 16-bit wideinclude/uapi/linux/bpf.h net/bpf/test_run.c net/core/filter.c+6 -40 repliesApplied
2/2selftests/bpf: Cover 4-byte load from remote_port in bpf_sk_lookuptools/include/uapi/linux/bpf.h tools/testing/selftests/bpf/progs/test_sk_lookup.c+8 -15 repliesApplied

Reviews trailers per patch

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

PatchYonghong Song
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/2] Split bpf_sk_lookup remote_port field

Following the recent split-up of the bpf_sock dst_port field, apply the same to technique to the bpf_sk_lookup remote_port field to make uAPI more user friendly.

v1 -> v2:
- Remove remote_port range check and cast to be16 in TEST_RUN for sk_lookup (kernel test robot)

Jakub Sitnicki (2):
bpf: Make remote_port field in struct bpf_sk_lookup 16-bit wide selftests/bpf: Cover 4-byte load from remote_port in bpf_sk_lookup

 include/uapi/linux/bpf.h                           | 3 ++-
 net/bpf/test_run.c                                 | 4 ++--
 net/core/filter.c                                  | 3 ++-
 tools/include/uapi/linux/bpf.h                     | 3 ++-
 tools/testing/selftests/bpf/progs/test_sk_lookup.c | 6 ++++++
 5 files changed, 14 insertions(+), 5 deletions(-)
Signature · 1 line
2.31.1