aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-12-06 16:57:48 +0000
committerJakub Kicinski <[email protected]>2021-12-08 22:31:14 +0000
commit947c8746e2c31bb469ba9ee02dc739be6a98ee38 (patch)
treed79bf7336fbc938ae82d29cb222ec871459a4ece /drivers/net/dsa/dsa_loop.c
parentnet: dsa: make dp->bridge_num one-based (diff)
downloadkernel-947c8746e2c31bb469ba9ee02dc739be6a98ee38.tar.gz
kernel-947c8746e2c31bb469ba9ee02dc739be6a98ee38.zip
net: dsa: assign a bridge number even without TX forwarding offload
The service where DSA assigns a unique bridge number for each forwarding domain is useful even for drivers which do not implement the TX forwarding offload feature. For example, drivers might use the dp->bridge_num for FDB isolation. So rename ds->num_fwd_offloading_bridges to ds->max_num_bridges, and calculate a unique bridge_num for all drivers that set this value. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Alvin Šipraga <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions