Topics

XDP Port Mirroring

Kanthi P
 

Hi,

I am looking at the ways in which we can mirror the traffic from one port to other port using XDP.

Appreciate your pointers

Thanks,
Kanthi


On Sun, Oct 14, 2018 at 3:55 PM Kanthi P <pavuluri.kanthi@...> wrote:
Hi,

I am looking at the ways in which we can mirror the traffic from one port to other port using XDP.

Appreciate your pointers

Thanks,
Kanthi

Kanthi P
 

Found the solution, please ignore

Thanks!

On Sun, Oct 14, 2018 at 3:57 PM Kanthi P <Pavuluri.kanthi@...> wrote:
Hi,

I am looking at the ways in which we can mirror the traffic from one port to other port using XDP.

Appreciate your pointers

Thanks,
Kanthi

On Sun, Oct 14, 2018 at 3:55 PM Kanthi P <pavuluri.kanthi@...> wrote:
Hi,

I am looking at the ways in which we can mirror the traffic from one port to other port using XDP.

Appreciate your pointers

Thanks,
Kanthi

Kanthi P
 

Sure :)

I have done it using XDP_REDIRECT. It redirects all the traffic from one port on to other port.
There are some helpers like "bpf_redirect" that you can leverage to do the needful.

You could refer to these samples below:
Regards,
Kanthi

On Mon, Oct 15, 2018 at 12:06 PM François <aifsair@...> wrote:


On Sunday, 14 October 2018, Kanthi P <Pavuluri.kanthi@...> wrote:
Found the solution, please ignore

Thanks!

Please share your solution :)
 



--
--
François