mbox series

[bpf-next,0/6] TCP-BPF callback for listening sockets

Message ID cover.1531355394.git.rdna@fb.com
Headers show
Series TCP-BPF callback for listening sockets | expand

Message

Andrey Ignatov July 12, 2018, 12:33 a.m. UTC
This patchset adds TCP-BPF callback for listening sockets.

Patch 0001 provides more details and is the main patch in the set.

Patch 0006 adds selftest for the new callback.

Other patches are bug fixes and improvements in TCP-BPF selftest to make it
easier to extend in 0006.


Andrey Ignatov (6):
  bpf: Add BPF_SOCK_OPS_TCP_LISTEN_CB
  bpf: Sync bpf.h to tools/
  selftests/bpf: Fix const'ness in cgroup_helpers
  selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers
  selftests/bpf: Better verification in test_tcpbpf
  selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CB

 include/uapi/linux/bpf.h                      |   3 +
 net/ipv4/af_inet.c                            |   1 +
 tools/include/uapi/linux/bpf.h                |   3 +
 tools/testing/selftests/bpf/Makefile          |   1 +
 tools/testing/selftests/bpf/cgroup_helpers.c  |   6 +-
 tools/testing/selftests/bpf/cgroup_helpers.h  |   6 +-
 tools/testing/selftests/bpf/test_tcpbpf.h     |   1 +
 .../testing/selftests/bpf/test_tcpbpf_kern.c  |  17 ++-
 .../testing/selftests/bpf/test_tcpbpf_user.c  | 119 +++++++++---------
 9 files changed, 88 insertions(+), 69 deletions(-)

Comments

Lawrence Brakmo July 12, 2018, 2:59 p.m. UTC | #1
LGTM. Thank you for adding the listen callback and cleaning up the test.

Acked-by: Lawrence Brakmo <brakmo@fb.com>


On 7/11/18, 8:34 PM, "Andrey Ignatov" <rdna@fb.com> wrote:

    This patchset adds TCP-BPF callback for listening sockets.
    
    Patch 0001 provides more details and is the main patch in the set.
    
    Patch 0006 adds selftest for the new callback.
    
    Other patches are bug fixes and improvements in TCP-BPF selftest to make it
    easier to extend in 0006.
    
    
    Andrey Ignatov (6):
      bpf: Add BPF_SOCK_OPS_TCP_LISTEN_CB
      bpf: Sync bpf.h to tools/
      selftests/bpf: Fix const'ness in cgroup_helpers
      selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers
      selftests/bpf: Better verification in test_tcpbpf
      selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CB
    
     include/uapi/linux/bpf.h                      |   3 +
     net/ipv4/af_inet.c                            |   1 +
     tools/include/uapi/linux/bpf.h                |   3 +
     tools/testing/selftests/bpf/Makefile          |   1 +
     tools/testing/selftests/bpf/cgroup_helpers.c  |   6 +-
     tools/testing/selftests/bpf/cgroup_helpers.h  |   6 +-
     tools/testing/selftests/bpf/test_tcpbpf.h     |   1 +
     .../testing/selftests/bpf/test_tcpbpf_kern.c  |  17 ++-
     .../testing/selftests/bpf/test_tcpbpf_user.c  | 119 +++++++++---------
     9 files changed, 88 insertions(+), 69 deletions(-)
    
    -- 
    2.17.1
Daniel Borkmann July 14, 2018, 10:18 p.m. UTC | #2
On 07/12/2018 02:33 AM, Andrey Ignatov wrote:
> This patchset adds TCP-BPF callback for listening sockets.
> 
> Patch 0001 provides more details and is the main patch in the set.
> 
> Patch 0006 adds selftest for the new callback.
> 
> Other patches are bug fixes and improvements in TCP-BPF selftest to make it
> easier to extend in 0006.
> 
> 
> Andrey Ignatov (6):
>   bpf: Add BPF_SOCK_OPS_TCP_LISTEN_CB
>   bpf: Sync bpf.h to tools/
>   selftests/bpf: Fix const'ness in cgroup_helpers
>   selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers
>   selftests/bpf: Better verification in test_tcpbpf
>   selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CB
> 
>  include/uapi/linux/bpf.h                      |   3 +
>  net/ipv4/af_inet.c                            |   1 +
>  tools/include/uapi/linux/bpf.h                |   3 +
>  tools/testing/selftests/bpf/Makefile          |   1 +
>  tools/testing/selftests/bpf/cgroup_helpers.c  |   6 +-
>  tools/testing/selftests/bpf/cgroup_helpers.h  |   6 +-
>  tools/testing/selftests/bpf/test_tcpbpf.h     |   1 +
>  .../testing/selftests/bpf/test_tcpbpf_kern.c  |  17 ++-
>  .../testing/selftests/bpf/test_tcpbpf_user.c  | 119 +++++++++---------
>  9 files changed, 88 insertions(+), 69 deletions(-)
> 

Applied to bpf-next, thanks Andrey!