Lines Matching full:lag
400 * for example, when a port leaves a LAG that offloads the bridge, in dsa_port_switchdev_unsync_attrs()
587 if (!dp->lag) in dsa_port_lag_change()
609 struct dsa_lag *lag; in dsa_port_lag_create() local
611 lag = dsa_tree_lag_find(ds->dst, lag_dev); in dsa_port_lag_create()
612 if (lag) { in dsa_port_lag_create()
613 refcount_inc(&lag->refcount); in dsa_port_lag_create()
614 dp->lag = lag; in dsa_port_lag_create()
618 lag = kzalloc(sizeof(*lag), GFP_KERNEL); in dsa_port_lag_create()
619 if (!lag) in dsa_port_lag_create()
622 refcount_set(&lag->refcount, 1); in dsa_port_lag_create()
623 mutex_init(&lag->fdb_lock); in dsa_port_lag_create()
624 INIT_LIST_HEAD(&lag->fdbs); in dsa_port_lag_create()
625 lag->dev = lag_dev; in dsa_port_lag_create()
626 dsa_lag_map(ds->dst, lag); in dsa_port_lag_create()
627 dp->lag = lag; in dsa_port_lag_create()
634 struct dsa_lag *lag = dp->lag; in dsa_port_lag_destroy() local
636 dp->lag = NULL; in dsa_port_lag_destroy()
639 if (!refcount_dec_and_test(&lag->refcount)) in dsa_port_lag_destroy()
642 WARN_ON(!list_empty(&lag->fdbs)); in dsa_port_lag_destroy()
643 dsa_lag_unmap(dp->ds->dst, lag); in dsa_port_lag_destroy()
644 kfree(lag); in dsa_port_lag_destroy()
663 info.lag = *dp->lag; in dsa_port_lag_join()
702 if (!dp->lag) in dsa_port_lag_leave()
705 /* Port might have been part of a LAG that in turn was in dsa_port_lag_leave()
711 info.lag = *dp->lag; in dsa_port_lag_leave()
1118 .lag = dp->lag, in dsa_port_lag_fdb_add()
1137 .lag = dp->lag, in dsa_port_lag_fdb_del()
1460 * VLAN, LAG, HSR need to be migrated. in dsa_port_change_master()