Re: [PATCH net-next 4/5] net: dsa: realtek: rtl8365mb: remove learn_limit_max private data member

From: Luiz Angelo Daros de Luca
Date: Tue Jun 07 2022 - 10:28:50 EST


> The variable is just assigned the value of a macro, so it can be
> removed.

The 10-ports devices do use a different value.

<10 ports
/* MAX LUT Address Number */
2112,

10-ports
/* MAX LUT Address Number 4096 + 64*/
4160,

I guess learn_limit_max could be migrated to the new
rtl8365mb_chip_info structure.

Regards,

Luiz