lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201103042908.2825734-1-liuhangbin@gmail.com>
Date:   Tue,  3 Nov 2020 12:29:06 +0800
From:   Hangbin Liu <liuhangbin@...il.com>
To:     netdev@...r.kernel.org
Cc:     William Tu <u9012063@...il.com>,
        Daniel Borkmann <daniel@...earbox.net>, bpf@...r.kernel.org,
        Hangbin Liu <liuhangbin@...il.com>
Subject: [PATCH bpf-next 0/2] selftest/bpf: improve bpf tunnel test

In comment 173ca26e9b51 ("samples/bpf: add comprehensive ipip, ipip6,
ip6ip6 test") we added some bpf tunnel tests. In commit 933a741e3b82
("selftests/bpf: bpf tunnel test.") when we moved it to the current
folder, we missed some points:

1. ip6ip6 test is not added
2. forgot to remove test_ipip.sh in sample folder
3. TCP test code is not removed in test_tunnel_kern.c

In this patch set I add back ip6ip6 test and remove unused code.
As I'm not sure if this should be a fixup, I didn't add the Fixes flag.

Here is the test result:
```
  Testing IP6IP6 tunnel...
  PING ::11(::11) 56 data bytes

  --- ::11 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 47ms
  rtt min/avg/max/mdev = 0.031/1023.035/2044.975/834.846 ms, pipe 2
  PING 1::11(1::11) 56 data bytes

  --- 1::11 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 47ms
  rtt min/avg/max/mdev = 0.027/0.046/0.058/0.013 ms
  PING 1::22(1::22) 56 data bytes

  --- 1::22 ping statistics ---
  3 packets transmitted, 3 received, 0% packet loss, time 47ms
  rtt min/avg/max/mdev = 0.041/0.056/0.074/0.014 ms
  PASS: ip6ip6tnl
```

Hangbin Liu (2):
  selftest/bpf: add missed ip6ip6 test back
  selftest/bpf: remove unused bpf tunnel testing code

 samples/bpf/test_ipip.sh                      | 179 ------------------
 .../selftests/bpf/progs/test_tunnel_kern.c    |  87 +--------
 tools/testing/selftests/bpf/test_tunnel.sh    |  39 +++-
 3 files changed, 40 insertions(+), 265 deletions(-)
 delete mode 100755 samples/bpf/test_ipip.sh

-- 
2.25.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ