Re: [RFC net-next v0 2/2] net: dsa: add option for bridge port HW offload

From: Andrew Lunn
Date: Mon Nov 11 2024 - 10:41:09 EST


On Mon, Nov 11, 2024 at 02:32:17PM +1300, Aryan Srivastava wrote:
> Currently the DSA framework will HW offload any bridge port if there is
> a driver available to support HW offloading. This may not always be the
> preferred case.
>
> In cases where the ports on the switch chip are being used as purely L3
> interfaces, it is preferred that every packet hits the CPU. In the case
> where these ports are added to a bridge, there is a likelihood of
> packets completely bypassing the CPU and being switched.

This does not make much sense to me. If it is purely L3, you don't
need a bridge, since that is only needed for L2.

I think we need more details to understand what you really mean here.

Andrew