Re: [PATCH net-next v2 1/2] net: dsa: motorcomm: Report error when FDB fails to add
From: Andrew Lunn
Date: Tue Nov 10 2026 - 08:45:40 EST
On Sun, Nov 08, 2026 at 05:45:09PM +0800, David Yang wrote:
> fdb_add() ignored any errors returned by the hardware. Return error for
> that case.
>
> In practice the 4096-entry table is hardly ever filled, and since
> fdb_add() will automatically expel dynamic entries, something bad will
> definitively happen before you fill it up with static entries. This,
> however, is in preparation for the upcoming static entry counters.
>
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>
Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
Andrew