Re: Redirect from NIC to TAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2021/2/9 下午5:26, 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.).


It should work. I tested with i40e/ixgbe/mlx4 in the past.

What eBPF program did you use? (Is it the one in samples/bpf?)

I would test it by myself.

(It's near to spring festival, so I can only check after the holiday).

Thanks



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






[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux