All of lore.kernel.org
 help / color / mirror / Atom feed
* Redirect to AF_XDP socket not working with bond interface in native mode
@ 2023-12-19 10:45 Prashant Batra
  2023-12-19 10:58 ` Prashant Batra
  2023-12-19 13:47 ` Magnus Karlsson
  0 siblings, 2 replies; 21+ messages in thread
From: Prashant Batra @ 2023-12-19 10:45 UTC (permalink / raw)
  To: xdp-newbies

Hi,

I am new to XDP and exploring it's working with different interface
types supported in linux. One of my use cases is to be able to receive
packets from the bond interface.
I used xdpsock sample program specifying the bond interface as the
input interface. However the packets received on the bond interface
are not handed over to the socket by the kernel if the socket is bound
in native mode. The packets are neither being passed to the kernel.
Note that the socket creation does succeed.
In skb mode this works and I am able to receive packets in the
userspace. But in skb mode as expected the performance is not that
great.

Is AF_XDP sockets on bond not supported in native mode? Or since the
packet has be to be handed over to the bond driver post reception on
the phy port, a skb allocation and copy to it is indeed a must?

Another thing I notice is that other XDP programs attached to bond
interface with targets like DROP, REDIRECT to other interface works
and perform better than AF_XDP (skb) based. Does this mean that these
are not allocating skb?

Kindly share your thoughts and advice.

Thanks,
Prashant

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

end of thread, other threads:[~2024-03-19 12:30 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 10:45 Redirect to AF_XDP socket not working with bond interface in native mode Prashant Batra
2023-12-19 10:58 ` Prashant Batra
2023-12-19 13:47 ` Magnus Karlsson
2023-12-19 20:18   ` Prashant Batra
2023-12-20  8:24     ` Magnus Karlsson
2023-12-21 12:39       ` Prashant Batra
2023-12-21 13:45         ` Magnus Karlsson
2023-12-22 11:23           ` Prashant Batra
2024-01-02  9:57             ` Magnus Karlsson
2024-01-11 10:41               ` Prashant Batra
2024-01-15  9:22                 ` Magnus Karlsson
2024-01-16 12:48                   ` Prashant Batra
2024-01-16 12:59                     ` Magnus Karlsson
2024-01-17  6:07                       ` Prashant Batra
2024-01-17  7:41                         ` Magnus Karlsson
2024-01-19 12:43                           ` Prashant Batra
2024-01-19 13:04                             ` Toke Høiland-Jørgensen
     [not found]                               ` <CAD0p+fUM5DcG44cxYXU3fMd9PgTjhTaMCH_oy=4iejJ41zxHpA@mail.gmail.com>
2024-03-18 18:41                                 ` Christian Deacon
2024-03-19  7:52                                   ` Magnus Karlsson
2024-03-19 11:57                                     ` Toke Høiland-Jørgensen
2024-03-19 12:29                                       ` Magnus Karlsson

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.