[PATCH v6 4/8] net: dsa: allow rcv() and xmit() to be optional

Simon Glass sjg at chromium.org
Tue Oct 11 00:25:29 CEST 2022


Hi Tim,

On Mon, 10 Oct 2022 at 10:40, Tim Harvey <tharvey at gateworks.com> wrote:
>
> Allow rcv() and xmit() dsa driver ops to be optional in case a driver
> does not care to mangle a packet as in U-Boot only one network port is
> enabled at a time and thus no packet mangling is necessary.
>
> Suggested-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> Signed-off-by: Tim Harvey <tharvey at gateworks.com>
> Reviewed-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> Reviewed-by: Fabio Estevam <festevam at denx.de>
> ---
> v6:
>  - no changes
> v5:
>  - added Fabio's rb tag
> v4:
>  - no changes
> v3:
>  - added Vladimir's rb tag
> v2: new patch
> ---
>  net/dsa-uclass.c | 27 ++++++++++++++++++---------
>  1 file changed, 18 insertions(+), 9 deletions(-)

Should the tests be updated for this?

Regards,
Simon


More information about the U-Boot mailing list