net: dsa: loop: Return VLAN table size through devlink
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Aug 2020 04:32:18 +0000 (21:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2020 19:01:42 +0000 (12:01 -0700)
commit142061eba35ef4f7097f31732547d33eca667f9d
treed07a5c9e5175c62e298e6bd83ac0a6510464a473
parentf0408ca45a83ad9a579e70c2878a9533dd04f036
net: dsa: loop: Return VLAN table size through devlink

We return the VLAN table size through devlink as a simple parameter, we
do not support altering it at runtime:

devlink resource show mdio_bus/fixed-0:1f
mdio_bus/fixed-0:1f:
  name VTU size 4096 occ 0 unit entry dpipe_tables none

and after configure a bridge with VLAN filtering:

devlink resource show mdio_bus/fixed-0:1f
mdio_bus/fixed-0:1f:
  name VTU size 4096 occ 1 unit entry dpipe_tables none

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/dsa_loop.c