diff options
author | John Fastabend <john.fastabend@gmail.com> | 2020-10-11 08:10:26 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-10-12 04:09:44 +0300 |
commit | a24fb420a5775581050026eba2264c87927debf7 (patch) | |
tree | 6f02632346e8d59489cb9d81c9f3fa44b1ca4480 /drivers/net/dsa/dsa_loop.c | |
parent | cdf43c4bfa1a465ba7996165b75c49b5c0e46b50 (diff) | |
download | linux-a24fb420a5775581050026eba2264c87927debf7.tar.xz |
bpf, selftests: Add three new sockmap tests for verdict only programs
Here we add three new tests for sockmap to test having a verdict program
without setting the parser program.
The first test covers the most simply case,
sender proxy_recv proxy_send recv
| | |
| verdict -----+ |
| | | |
+----------------+ +------------+
We load the verdict program on the proxy_recv socket without a
parser program. It then does a redirect into the send path of the
proxy_send socket using sendpage_locked().
Next we test the drop case to ensure if we kfree_skb as a result of
the verdict program everything behaves as expected.
Next we test the same configuration above, but with ktls and a
redirect into socket ingress queue. Shown here
tls tls
sender proxy_recv proxy_send recv
| | |
| verdict ------------------+
| | redirect_ingress
+----------------+
Also to set up ping/pong test
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/160239302638.8495.17125996694402793471.stgit@john-Precision-5820-Tower
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions