All of lore.kernel.org
 help / color / mirror / Atom feed
* AF_XDP not transmitting frames immediately
@ 2021-12-13 21:04 Jesper Dangaard Brouer
  2021-12-14  8:07 ` Karlsson, Magnus
  0 siblings, 1 reply; 16+ messages in thread
From: Jesper Dangaard Brouer @ 2021-12-13 21:04 UTC (permalink / raw)
  To: Karlsson, Magnus, Björn Töpel
  Cc: brouer, Xdp, Ong Boon Leong, Joao Pedro Barros Silva,
	Diogo Alexandre Da Silva Lima

Hi Magnus and Bjørn,

I'm coding on an AF_XDP program[1] that need to send (a bulk of packets)
in a short time-window (related to Time-Triggered Ethernet).

My observations are that AF_XDP doesn't send the frames immediately.
And yes, I do call sendto() to trigger a TX kick.
In zero-copy mode this is particular bad.  My program want to send 4
packets in a burst, but I'm observing 8 packets grouped together on the
receiving host.

Is the a known property of AF_XDP?

How can I get AF_XDP to "flush" TX packets when calling sendto()?
Should we add another flag than the current MSG_DONTWAIT?

--Jesper

Hint, I'm using tcpdump hardware timestamping on receiving hist via cmdline:

  tcpdump -vv -s0 -ni eth1 -j adapter_unsynced 
--time-stamp-precision=nano  -w af_xdp_tx_cyclic.dump42

Notice[1] on specific branch:
  [1] 
https://github.com/xdp-project/bpf-examples/tree/vestas03_AF_XDP_example/AF_XDP-interaction


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-12-16 15:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13 21:04 AF_XDP not transmitting frames immediately Jesper Dangaard Brouer
2021-12-14  8:07 ` Karlsson, Magnus
2021-12-14 10:32   ` Jesper Dangaard Brouer
2021-12-14 10:40     ` Karlsson, Magnus
2021-12-14 11:25       ` Maciej Fijalkowski
2021-12-14 14:04         ` Jesper Dangaard Brouer
2021-12-14 14:57           ` Ong, Boon Leong
2021-12-14 15:42             ` Jesper Dangaard Brouer
2021-12-14 16:05               ` Maciej Fijalkowski
2021-12-15  1:08       ` Desouza, Ederson
2021-12-15  8:41         ` Jesper Dangaard Brouer
2021-12-15 10:17   ` Jesper Dangaard Brouer
2021-12-15 11:07     ` Karlsson, Magnus
2021-12-15 17:11       ` Jesper Dangaard Brouer
2021-12-16  8:34         ` Karlsson, Magnus
2021-12-16 15:28           ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.