Lines Matching refs:br_attrs
101 struct nlattr *br_attrs[IFLA_BRPORT_MAX+1]; in bridge_parse_protinfo() local
115 if ((err = nla_parse_nested(br_attrs, IFLA_BRPORT_MAX, attr, in bridge_parse_protinfo()
121 if (br_attrs[IFLA_BRPORT_STATE]) { in bridge_parse_protinfo()
122 bd->b_port_state = nla_get_u8(br_attrs[IFLA_BRPORT_STATE]); in bridge_parse_protinfo()
126 if (br_attrs[IFLA_BRPORT_PRIORITY]) { in bridge_parse_protinfo()
127 bd->b_priority = nla_get_u16(br_attrs[IFLA_BRPORT_PRIORITY]); in bridge_parse_protinfo()
131 if (br_attrs[IFLA_BRPORT_COST]) { in bridge_parse_protinfo()
132 bd->b_cost = nla_get_u32(br_attrs[IFLA_BRPORT_COST]); in bridge_parse_protinfo()
136 check_flag(link, br_attrs, IFLA_BRPORT_MODE, RTNL_BRIDGE_HAIRPIN_MODE); in bridge_parse_protinfo()
137 check_flag(link, br_attrs, IFLA_BRPORT_GUARD, RTNL_BRIDGE_BPDU_GUARD); in bridge_parse_protinfo()
138 check_flag(link, br_attrs, IFLA_BRPORT_PROTECT, RTNL_BRIDGE_ROOT_BLOCK); in bridge_parse_protinfo()
139 check_flag(link, br_attrs, IFLA_BRPORT_FAST_LEAVE, RTNL_BRIDGE_FAST_LEAVE); in bridge_parse_protinfo()