[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0168a988486f4bff08bd186d5aea1cfe4900a2c3.camel@redhat.com>
Date: Tue, 12 Sep 2023 11:56:15 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Andrii Staikov <andrii.staikov@...el.com>,
intel-wired-lan@...ts.osuosl.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH iwl-next v2] ice: Add support for packet mirroring
using hardware in switchdev mode
Hi all,
On Tue, 2023-09-12 at 11:29 +0200, Andrii Staikov wrote:
> Switchdev mode allows to add mirroring rules to mirror
> incoming and outgoing packets to the interface's port
> representor. Previously, this was available only using
> software functionality. Add possibility to offload this
> functionality to the NIC hardware.
>
> Introduce ICE_MIRROR_PACKET filter action to the
> ice_sw_fwd_act_type enum to identify the desired action
> and pass it to the hardware as well as the VSI to mirror.
>
> Example of tc mirror command using hardware:
> tc filter add dev ens1f0np0 ingress protocol ip prio 1 flower
> src_mac b4:96:91:a5:c7:a7 skip_sw action mirred egress mirror dev eth1
>
> ens1f0np0 - PF
> b4:96:91:a5:c7:a7 - source MAC address
> eth1 - PR of a VF to mirror to
>
> Signed-off-by: Andrii Staikov <andrii.staikov@...el.com>
The amount of patches that IMHO should land only into intel-specific
MLs and instead reaches also netdev, recently increased.
Please try harder to apply proper constraints to your traffic, netdev
is already busy enough!
Thanks,
Paolo
Powered by blists - more mailing lists