Re: [PATCH net] net: dsa: motorcomm: Report error when FDB fails to add

From: Andrew Lunn

Date: Sun Oct 25 2026 - 20:44:39 EST


On Sun, Oct 25, 2026 at 10:41:11AM +0800, David Yang wrote:
> fdb_add() ignored any errors returned by the hardware (for example,
> table is full). Return error for that case.
>
> Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>

I'm not sure this deserves a Fixes tag. How many entries does the
table take before it is full? Typical home networks have what, 10, 20
devices maximum. A small business network may have a couple of
hundred?

What happens if it is full, and you don't return ENOSPC?

Andrew