All of lore.kernel.org
 help / color / mirror / Atom feed
* mlx5 AF_XDP zero-copy queues
@ 2024-07-13  6:53 Srivats P
  2024-07-13 16:04 ` Jakub Kicinski
  0 siblings, 1 reply; 5+ messages in thread
From: Srivats P @ 2024-07-13  6:53 UTC (permalink / raw)
  To: Xdp

Hi,

I'm seeing a behaviour difference between kernel 5.4 and 5.15 wrt the
AF_XDP queues used for zero copy. This is specific to the mlx5.

Assume you have 'n' queues configured on the interface.

In 5.4, you had to use n to 2*n -1 queue numbers for AF_XDP zc. Using
0 to n-1 queues would use copy mode.

In 5.15, you have to use 0 to n-1 for zero copy also. Socket creation
fails if you use queue >=n.

Also, with 5.4 netdev stats would not be incremented for AF_XDP
packets whereas with 5.15 they do get incremented?

Can someone confirm this behaviour change or point me to relevant
mailing list discussions or some other information on the same? My
google-fu is failing me.

When did this change go into the kernel? I can't find anything in the
kernelnewbies.org changelog between 5.4 and 5.15.

Srivats

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

end of thread, other threads:[~2024-07-18 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-13  6:53 mlx5 AF_XDP zero-copy queues Srivats P
2024-07-13 16:04 ` Jakub Kicinski
2024-07-15 10:54   ` Srivats P
2024-07-17 10:05     ` Srivats P
     [not found]       ` <LO4P265MB3758D7056BF45389781B8C4193AC2@LO4P265MB3758.GBRP265.PROD.OUTLOOK.COM>
2024-07-18 11:59         ` Srivats P

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.