[PATCH bpf-next 0/2] bpf: Narrow loads for bpf_sock_addr.user_port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set adds support for narrow loads from bpf_sock_addr.user_port
in BPF_PROG_TYPE_CGROUP_SOCK_ADDR program.s

Patch 1 adds narrow loads support for user_port.
Patch 2 tests it.


Andrey Ignatov (2):
  bpf: Support narrow loads from bpf_sock_addr.user_port
  selftests/bpf: Test narrow loads for bpf_sock_addr.user_port

 include/uapi/linux/bpf.h                     |  2 +-
 net/core/filter.c                            | 15 ++++----
 tools/include/uapi/linux/bpf.h               |  2 +-
 tools/testing/selftests/bpf/test_sock_addr.c | 38 ++++++++++++++------
 4 files changed, 37 insertions(+), 20 deletions(-)

-- 
2.24.1





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux