On Tue, Feb 09, 2021 at 11:26:06AM +0200, Radu Stoenescu wrote: > Hello > > My physical NIC is a Netronome (I can come back with exact model type > and driver version). > > Redirect NIC to TAP doesn't work when XDP is attached in driver mode. > It works when they are both in generic mode. I haven't tried other > combinations of attachment modes (one driver, other generic etc.). Looks like Netronome driver still doesn't support XDP_REDIRECT in native mode. CC: Simon Simon, any plans on adding support for redirect? > > Thanks > > On Tue, Feb 9, 2021 at 11:21 AM Jesper Dangaard Brouer > <brouer@xxxxxxxxxx> wrote: > > > > On Tue, 9 Feb 2021 10:31:50 +0200 > > Radu Stoenescu <radu.stoe@xxxxxxxxx> wrote: > > > > > Is it possible to redirect packets from XDP program attached in driver > > > mode to a physical NIC to a TAP interface? > > > > Cc. Jason Wang as I think he implemented this, but I'm not 100% sure. > > Maybe Jason can remember? > > (or point me to the relevant code that I can check). > > > > > The same works fine if the XDP programs are attached in generic mode. > > > > So, you have tried and it doesn't work. > > > > What is your setup? > > > > -- > > Best regards, > > Jesper Dangaard Brouer > > MSc.CS, Principal Kernel Engineer at Red Hat > > LinkedIn: http://www.linkedin.com/in/brouer > > > > > -- > Radu Stoenescu