Skip to content

Commit

Permalink
Add udpsplice to netlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Oct 21, 2023
1 parent 23f7b85 commit 0e04fbf
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Testvars.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,10 @@ my @testdesc = (
'netbench.pl_-v_-b1000000_-N10_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1011::20_-afdd7:e83e:66bd:1012::40_-t10_tcpcopy' => "linux-openbsd-linux-tcp6copy-parallel",
'netbench.pl_-v_-b1000000_-croot@lt40_-sroot@lt43_-A10.10.11.20_-a10.10.12.40_-t10_tcpcopy' => "linux-openbsd-linux-tcp4copy-single",
'netbench.pl_-v_-b1000000_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1011::20_-afdd7:e83e:66bd:1012::40_-t10_tcpcopy' => "linux-openbsd-linux-tcp6copy-single",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f0_-i3_-N10_-croot@lt40_-sroot@lt43_-A10.10.11.20_-a10.10.12.40_-t10_udpsplice' => "linux-openbsd-linux-udp4splice-empty",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f0_-i3_-N10_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1011::20_-afdd7:e83e:66bd:1012::40_-t10_udpsplice' => "linux-openbsd-linux-udp6splice-empty",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f1_-i3_-N10_-croot@lt40_-sroot@lt43_-A10.10.11.20_-a10.10.12.40_-t10_udpsplice' => "linux-openbsd-linux-udp4splice-full",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f1_-i3_-N10_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1011::20_-afdd7:e83e:66bd:1012::40_-t10_udpsplice' => "linux-openbsd-linux-udp6splice-full",
'ping6_-qfc10000_fdd7:e83e:66bd:1022::4' => "openbsd-linux-icmp6",
'ping_-qfc10000_10.10.22.4' => "openbsd-linux-icmp4",
'ssh_root@lt40_ping6_-qfc10000_fdd7:e83e:66bd:1021::2' => "linux-openbsd-icmp6",
Expand Down Expand Up @@ -1085,6 +1089,10 @@ my @testdesc = (
'netbench.pl_-v_-b1000000_-N10_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1021::20_-afdd7:e83e:66bd:1022::40_-t10_tcpcopy' => "linux-openbsd-linux-tcp6copy-parallel",
'netbench.pl_-v_-b1000000_-croot@lt40_-sroot@lt43_-A10.10.21.20_-a10.10.22.40_-t10_tcpcopy' => "linux-openbsd-linux-tcp4copy-single",
'netbench.pl_-v_-b1000000_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1021::20_-afdd7:e83e:66bd:1022::40_-t10_tcpcopy' => "linux-openbsd-linux-tcp6copy-single",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f0_-i3_-N10_-croot@lt40_-sroot@lt43_-A10.10.21.20_-a10.10.22.40_-t10_udpsplice' => "linux-openbsd-linux-udp4splice-empty",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f0_-i3_-N10_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1021::20_-afdd7:e83e:66bd:1022::40_-t10_udpsplice' => "linux-openbsd-linux-udp6splice-empty",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f1_-i3_-N10_-croot@lt40_-sroot@lt43_-A10.10.21.20_-a10.10.22.40_-t10_udpsplice' => "linux-openbsd-linux-udp4splice-full",
'netbench.pl_-v_-B1000000000_-b1000000_-d1_-f1_-i3_-N10_-croot@lt40_-sroot@lt43_-Afdd7:e83e:66bd:1021::20_-afdd7:e83e:66bd:1022::40_-t10_udpsplice' => "linux-openbsd-linux-udp6splice-full",
);

%TESTDESC = @testdesc;
Expand Down
36 changes: 36 additions & 0 deletions netlink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,42 @@ sub notso_shutdown {
}
) if $testmode{splice6};
}
foreach my $frame (0, 1) {
push @tests, {
testcmd => [$netbench,
'-v',
'-B1000000000',
'-b1000000',
'-d1',
"-f$frame",
'-i3',
'-N10',
"-c$lnx_l_ssh",
"-s$lnx_r_ssh",
"-A$obsd_l_addr_range[0]",
"-a$lnx_r_addr_range[0]",
'-t10',
'udpsplice'],
parser => \&netbench_parser,
} if $testmode{splice4};
push @tests, {
testcmd => [$netbench,
'-v',
'-B1000000000',
'-b1000000',
'-d1',
"-f$frame",
'-i3',
'-N10',
"-c$lnx_l_ssh",
"-s$lnx_r_ssh",
"-A$obsd_l_addr6_range[0]",
"-a$lnx_r_addr6_range[0]",
'-t10',
'udpsplice'],
parser => \&netbench_parser,
} if $testmode{splice6};
}

my @stats = (
{
Expand Down

0 comments on commit 0e04fbf

Please sign in to comment.