Lines Matching full:role
270 * - when node role is MRM, in this case test_monitor is always set to false
273 * - when node role is MRA, there are 2 subcases:
274 * - when MRA behaves as MRM, in this case is similar with MRM role
297 * role MRA and behaves as MRC. The reason is that the in br_mrp_test_work_expired()
300 * the role of a MRM. in br_mrp_test_work_expired()
348 /* This function is continuously called when the node has the interconnect role
437 /* Stop sending MRP_InTest frames if has an interconnect role */ in br_mrp_del_impl()
614 /* Set port role, port role can be primary or secondary
618 enum br_mrp_port_role_type role) in br_mrp_set_port_role() argument
630 switch (role) { in br_mrp_set_port_role()
641 br_mrp_port_switchdev_set_role(p, role); in br_mrp_set_port_role()
667 /* Set ring role, ring role can be only MRM(Media Redundancy Manager) or
672 struct br_mrp_ring_role *role) in br_mrp_set_ring_role() argument
674 struct br_mrp *mrp = br_mrp_find_id(br, role->ring_id); in br_mrp_set_ring_role()
680 mrp->ring_role = role->ring_role; in br_mrp_set_ring_role()
683 support = br_mrp_switchdev_set_ring_role(br, mrp, role->ring_role); in br_mrp_set_ring_role()
687 /* Now detect if the HW actually applied the role or not. If the HW in br_mrp_set_ring_role()
688 * applied the role it means that the SW will not to do those operations in br_mrp_set_ring_role()
689 * anymore. For example if the role ir MRM then the HW will notify the in br_mrp_set_ring_role()
754 /* Set in role, in role can be only MIM(Media Interconnection Manager) or
758 int br_mrp_set_in_role(struct net_bridge *br, struct br_mrp_in_role *role) in br_mrp_set_in_role() argument
760 struct br_mrp *mrp = br_mrp_find_id(br, role->ring_id); in br_mrp_set_in_role()
767 if (!br_mrp_get_port(br, role->i_ifindex)) in br_mrp_set_in_role()
770 if (role->in_role == BR_MRP_IN_ROLE_DISABLED) { in br_mrp_set_in_role()
792 mrp->in_role = role->in_role; in br_mrp_set_in_role()
799 if (!br_mrp_unique_ifindex(br, role->i_ifindex)) in br_mrp_set_in_role()
809 p = br_mrp_get_port(br, role->i_ifindex); in br_mrp_set_in_role()
816 mrp->in_role = role->in_role; in br_mrp_set_in_role()
817 mrp->in_id = role->in_id; in br_mrp_set_in_role()
820 support = br_mrp_switchdev_set_in_role(br, mrp, role->in_id, in br_mrp_set_in_role()
821 role->ring_id, role->in_role); in br_mrp_set_in_role()
825 /* Now detect if the HW actually applied the role or not. If the HW in br_mrp_set_in_role()
826 * applied the role it means that the SW will not to do those operations in br_mrp_set_in_role()
827 * anymore. For example if the role is MIM then the HW will notify the in br_mrp_set_in_role()
1071 * the frame type, ring role and interconnect role
1102 * interconnect role and ports to process or forward the frame in br_mrp_rcv()
1105 /* If the role is MRM then don't forward the frames */ in br_mrp_rcv()
1111 /* If the role is MRA then don't forward the frames if it in br_mrp_rcv()
1153 * role then it should forward all frames between the ring ports in br_mrp_rcv()