All of lore.kernel.org
 help / color / mirror / Atom feed
* AF_XDP sendto kick returning EPERM
@ 2021-04-23 15:44 Srivats P
  2021-04-27  7:28 ` Magnus Karlsson
  0 siblings, 1 reply; 8+ messages in thread
From: Srivats P @ 2021-04-23 15:44 UTC (permalink / raw)
  To: Xdp

Hi,

I'm using sendto() to kick tx in my AF_XDP program after I submit
descriptors to the tx ring -

ret = sendto(xsk_socket__fd(xsk_), NULL, 0, MSG_DONTWAIT, NULL, 0);

However, I'm receiving EPERM as the return value every time. AFAIK
this is not an expected return value. Since this is with i40e, I
checked i40e_xsk_wakeup() - but that also doesn't return EPERM. I am
running as root and I don't see any problems with creating the xsk,
configuring umem etc.

Also, no packets seem to go out either.

# uname -a
Linux Ostinato-1 5.11.15-1-default #1 SMP Fri Apr 16 16:47:34 UTC 2021
(64fb5bf) x86_64 x86_64 x86_64 GNU/Linux

I don't see the problem on another machine with i40e but older kernel 5.4 series

Any suggestions on what to look for or how to proceed?

Srivats

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

end of thread, other threads:[~2021-05-11 12:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 15:44 AF_XDP sendto kick returning EPERM Srivats P
2021-04-27  7:28 ` Magnus Karlsson
2021-04-29 15:47   ` Srivats P
2021-05-03  8:24     ` Magnus Karlsson
2021-05-07 14:47       ` Srivats P
2021-05-07 15:09         ` Srivats P
2021-05-09 15:41           ` Maciej Fijalkowski
2021-05-11 12:02             ` 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.