Re: [PATCH net-next 6/6] net: dsa: hellcreek: Add devlink FDB region

2021-03-11 Thread Andrew Lunn
> static int hellcreek_setup_devlink_regions(struct dsa_switch *ds) > { > struct hellcreek *hellcreek = ds->priv; > struct devlink_region_ops *ops; > struct devlink_region *region; > u64 size; > + int ret; > > + /* VLAN table */ > size = VLAN_N_VID * sizeof

[PATCH net-next 6/6] net: dsa: hellcreek: Add devlink FDB region

2021-03-11 Thread Kurt Kanzenbach
Allow to dump the FDB table via devlink. This is a useful debugging feature. Signed-off-by: Kurt Kanzenbach --- drivers/net/dsa/hirschmann/hellcreek.c | 63 ++ drivers/net/dsa/hirschmann/hellcreek.h | 1 + 2 files changed, 64 insertions(+) diff --git a/drivers/net/dsa/h