All of lore.kernel.org
 help / color / mirror / Atom feed
* bidirectional: => AF_XDP , <= XDP_REDIRECT
@ 2019-09-10 14:01 Ilya Goslhtein
  2019-09-10 14:21 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 7+ messages in thread
From: Ilya Goslhtein @ 2019-09-10 14:01 UTC (permalink / raw)
  To: xdp-newbies

Hello,

I am trying to use a network interface to
(1) send packets via AF_XDP
(2) receive packets and redirect to another interface via xdp_redirect_map

Basically, I am making xdpbridge https://github.com/ilejn/xdpbridge.
  bidirectional. My goal is to process packets in one direction in 
kernelspace (xdp_redirect_map) and to pass packets in opposite direction 
via userspace (recieve via AF_XDP then send via AF_XDP, rings are not 
shared, so I perform memcpy).

For test purposes I ran two applications: my xdpbridge and 
xdp_redirect_map bpf sample.

It does not work. Only few packets are received, then the thing stops. 
Redirecting works until xdpbridge does 'bind' against the interface.

 From XDP point of view we have:
application one: bind with PF_XDP
application two: XDP program

What is the nature of the problem? Is it fundamental, 
environment/hardware specific, or I am simply doing something wrong?

ubuntu 18.04, 5.0.0-27-generic,
Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ 
Network Connection (rev 01)

Thanks.

-- 
Best regards,
Ilya Golshtein

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

end of thread, other threads:[~2019-10-30 17:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-10 14:01 bidirectional: => AF_XDP , <= XDP_REDIRECT Ilya Goslhtein
2019-09-10 14:21 ` Toke Høiland-Jørgensen
2019-09-10 14:32   ` Ilya Goslhtein
2019-09-10 14:38     ` Toke Høiland-Jørgensen
2019-10-30 15:44       ` Ilya Goslhtein
2019-10-30 16:39         ` Jesper Dangaard Brouer
2019-10-30 16:59           ` Ilya Goslhtein

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.