Apologies. The kernel I am testing this on is- 5.14.0-5.14.0-162.18.1.el9_1 On Tue, Dec 19, 2023 at 4:15 PM Prashant Batra <prbatra.mail@xxxxxxxxx> wrote: > > 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