lkml.org 
[lkml]   [2021]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC 00/12] io_uring zerocopy send
From
On 12/1/21 2:51 PM, Martin KaFai Lau wrote:
>
> To tx out dummy, I did:
> #> ip a add 10.0.0.1/24 dev dummy0
^^^^^^^^
>
> #> ip -4 r
> 10.0.0.0/24 dev dummy0 proto kernel scope link src 10.0.0.1
>
> #> ./send-zc -4 -D 10.0.0.(2) -t 10 udp
^^^^^^^^^^

Pavel's commands have: 'send-zc -4 -D <dummy_ip_addr> -t 10 udp'

I read dummy_ip_addr as the address assigned to dummy0; that's an
important detail. You are sending to an address on that network, not the
address assigned to the device, in which case packets are created and
then dropped by the dummy driver - nothing actually makes it to the server.


> ip -s link show dev dummy0
> 2: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 65535 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
> link/ether 82:0f:e0:dc:f7:e6 brd ff:ff:ff:ff:ff:ff
> RX: bytes packets errors dropped missed mcast
> 0 0 0 0 0 0
> TX: bytes packets errors dropped carrier collsns
> 140800890299 2150397 0 0 0 0
>

\
 
 \ /
  Last update: 2021-12-01 23:37    [W:0.082 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site