brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · c01915e Raw
42 lines · plain
1// SPDX-License-Identifier: GPL-2.02// batch zerocopy test:3//4// send multiple packets, then read one range of all notifications.5 6`./defaults.sh`7 8    0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 39   +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 010   +0 setsockopt(3, SOL_SOCKET, SO_ZEROCOPY, [1], 4) = 011   +0 bind(3, ..., ...) = 012   +0 listen(3, 1) = 013 14   +0 < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop,nop,wscale 7>15   +0 > S. 0:0(0) ack 1 <mss 1460,nop,nop,sackOK,nop,wscale 8>16   +0 < . 1:1(0) ack 1 win 25717 18   +0 accept(3, ..., ...) = 419   +0 setsockopt(4, SOL_SOCKET, SO_MARK, [666], 4) = 020 21   +0 send(4, ..., 4000, MSG_ZEROCOPY) = 400022   +0 > P. 1:4001(4000) ack 123   +0 < . 1:1(0) ack 4001 win 25724 25   +0 send(4, ..., 4000, MSG_ZEROCOPY) = 400026   +0 > P. 4001:8001(4000) ack 127   +0 < . 1:1(0) ack 8001 win 25728 29   +0 recvmsg(4, {msg_name(...)=...,30                  msg_iov(1)=[{...,0}],31                  msg_flags=MSG_ERRQUEUE,32                  msg_control=[33                        {cmsg_level=CMSG_LEVEL_IP,34                         cmsg_type=CMSG_TYPE_RECVERR,35                         cmsg_data={ee_errno=0,36                                    ee_origin=SO_EE_ORIGIN_ZEROCOPY,37                                    ee_type=0,38                                    ee_code=SO_EE_CODE_ZEROCOPY_COPIED,39                                    ee_info=0,40                                    ee_data=1}}41                  ]}, MSG_ERRQUEUE) = 042