Re: [PATCH net-next v10 10/12] net: dsa: realtek: rtl8365mb: refactor L2 MAC handling
From: Linus Walleij
Date: Thu Nov 12 2026 - 16:12:00 EST
On Thu, Nov 12, 2026 at 6:40 PM Mieczyslaw Nalewaj <namiltd@xxxxxxxxx> wrote:
> Add L2 MAC pack/unpack helpers and use them in the family C
> serializers instead of open-coding the byte packing, since the layout
> of the MAC address words is the same for both families. The now unused
> per-field MAC masks are dropped.
>
> Rename the family C serializers to rtl8365mb_c_l2_*(), export them and
> reach them through function pointers in struct rtl8365mb_family_info,
> so that a following patch can add the family D layout without touching
> the family C code again.
>
> No functional change.
>
> Tested-by: Gustavo Foletto Mora <gusfmora@xxxxxxxxx>
> Tested-by: Stanislaw Pal <kuncy7@xxxxxxxxx>
> Signed-off-by: Mieczyslaw Nalewaj <namiltd@xxxxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij