lkml.org 
[lkml]   [2021]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH net-next 4/5] net: dsa: realtek-smi: add rtl8365mb subdriver for RTL8365MB-VC
Date
On Sun, Aug 22, 2021 at 09:31:42PM +0200, Alvin Šipraga wrote:
> +/* Table LUT (look-up-table) address register */
> +#define RTL8365MB_TABLE_LUT_ADDR_REG 0x0502
> +#define RTL8365MB_TABLE_LUT_ADDR_ADDRESS2_MASK 0x4000
> +#define RTL8365MB_TABLE_LUT_ADDR_BUSY_FLAG_MASK 0x2000
> +#define RTL8365MB_TABLE_LUT_ADDR_HIT_STATUS_MASK 0x1000
> +#define RTL8365MB_TABLE_LUT_ADDR_TYPE_MASK 0x0800
> +#define RTL8365MB_TABLE_LUT_ADDR_ADDRESS_MASK 0x07FF

FDB/MDB operations should be possible.

> +/* Port isolation (forwarding mask) registers */
> +#define RTL8365MB_PORT_ISOLATION_REG_BASE 0x08A2
> +#define RTL8365MB_PORT_ISOLATION_REG(_physport) \
> + (RTL8365MB_PORT_ISOLATION_REG_BASE + (_physport))
> +#define RTL8365MB_PORT_ISOLATION_MASK 0x07FF

Bridge offload should be implemented with these isolation registers.



FYI:
https://cdn.jsdelivr.net/gh/libc0607/Realtek_switch_hacking@files/Realtek_Unmanaged_Switch_ProgrammingGuide.pdf

\
 
 \ /
  Last update: 2021-08-23 06:38    [W:0.166 / U:3.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site