Re: Redirect from NIC to TAP

Radu Stoenescu <[email protected]>
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAM-scZNLN5cgJBEdVFSSrLJi3zW-5THzbY=diESdKiiisCT9MQ@mail.gmail.com>
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.).

Thanks

On Tue, Feb 9, 2021 at 11:21 AM Jesper Dangaard Brouer
<[email protected]> wrote:
>
> On Tue, 9 Feb 2021 10:31:50 +0200
> Radu Stoenescu <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.