mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
selftests/bpf: Add ingress tests for txmsg with apply_bytes
Currently, the ingress redirect is not covered in "txmsg test apply". Signed-off-by: Pengcheng Yang <yangpc@wangsu.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jakub Sitnicki <jakub@cloudflare.com> Link: https://lore.kernel.org/bpf/1669718441-2654-5-git-send-email-yangpc@wangsu.com
This commit is contained in:
parent
9072931f02
commit
89903dcb3c
1 changed files with 18 additions and 0 deletions
|
@ -1690,24 +1690,42 @@ static void test_txmsg_apply(int cgrp, struct sockmap_options *opt)
|
|||
{
|
||||
txmsg_pass = 1;
|
||||
txmsg_redir = 0;
|
||||
txmsg_ingress = 0;
|
||||
txmsg_apply = 1;
|
||||
txmsg_cork = 0;
|
||||
test_send_one(opt, cgrp);
|
||||
|
||||
txmsg_pass = 0;
|
||||
txmsg_redir = 1;
|
||||
txmsg_ingress = 0;
|
||||
txmsg_apply = 1;
|
||||
txmsg_cork = 0;
|
||||
test_send_one(opt, cgrp);
|
||||
|
||||
txmsg_pass = 0;
|
||||
txmsg_redir = 1;
|
||||
txmsg_ingress = 1;
|
||||
txmsg_apply = 1;
|
||||
txmsg_cork = 0;
|
||||
test_send_one(opt, cgrp);
|
||||
|
||||
txmsg_pass = 1;
|
||||
txmsg_redir = 0;
|
||||
txmsg_ingress = 0;
|
||||
txmsg_apply = 1024;
|
||||
txmsg_cork = 0;
|
||||
test_send_large(opt, cgrp);
|
||||
|
||||
txmsg_pass = 0;
|
||||
txmsg_redir = 1;
|
||||
txmsg_ingress = 0;
|
||||
txmsg_apply = 1024;
|
||||
txmsg_cork = 0;
|
||||
test_send_large(opt, cgrp);
|
||||
|
||||
txmsg_pass = 0;
|
||||
txmsg_redir = 1;
|
||||
txmsg_ingress = 1;
|
||||
txmsg_apply = 1024;
|
||||
txmsg_cork = 0;
|
||||
test_send_large(opt, cgrp);
|
||||
|
|
Loading…
Add table
Reference in a new issue