Lines Matching full:role
109 enum br_mrp_port_role_type role; in br_mrp_port_role_parse() local
118 NL_SET_ERR_MSG_MOD(extack, "Missing attribute: ROLE"); in br_mrp_port_role_parse()
122 role = nla_get_u32(tb[IFLA_BRIDGE_MRP_PORT_ROLE_ROLE]); in br_mrp_port_role_parse()
124 return br_mrp_set_port_role(p, role); in br_mrp_port_role_parse()
172 struct br_mrp_ring_role role; in br_mrp_ring_role_parse() local
183 "Missing attribute: RING_ID or ROLE"); in br_mrp_ring_role_parse()
187 memset(&role, 0x0, sizeof(role)); in br_mrp_ring_role_parse()
189 role.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_RING_ROLE_RING_ID]); in br_mrp_ring_role_parse()
190 role.ring_role = nla_get_u32(tb[IFLA_BRIDGE_MRP_RING_ROLE_ROLE]); in br_mrp_ring_role_parse()
192 return br_mrp_set_ring_role(br, &role); in br_mrp_ring_role_parse()
288 struct br_mrp_in_role role; in br_mrp_in_role_parse() local
301 "Missing attribute: RING_ID or ROLE or IN_ID or I_IFINDEX"); in br_mrp_in_role_parse()
305 memset(&role, 0x0, sizeof(role)); in br_mrp_in_role_parse()
307 role.ring_id = nla_get_u32(tb[IFLA_BRIDGE_MRP_IN_ROLE_RING_ID]); in br_mrp_in_role_parse()
308 role.in_id = nla_get_u16(tb[IFLA_BRIDGE_MRP_IN_ROLE_IN_ID]); in br_mrp_in_role_parse()
309 role.i_ifindex = nla_get_u32(tb[IFLA_BRIDGE_MRP_IN_ROLE_I_IFINDEX]); in br_mrp_in_role_parse()
310 role.in_role = nla_get_u32(tb[IFLA_BRIDGE_MRP_IN_ROLE_ROLE]); in br_mrp_in_role_parse()
312 return br_mrp_set_in_role(br, &role); in br_mrp_in_role_parse()