• Home
  • Raw
  • Download

Lines Matching refs:bd

67 	struct bridge_data *bd;  in bridge_clone()  local
69 if ((bd = bridge_alloc(link))) in bridge_clone()
70 memcpy(bd, data, sizeof(*bd)); in bridge_clone()
72 return bd; in bridge_clone()
100 struct bridge_data *bd = data; in bridge_parse_protinfo() local
109 bd->b_port_state = nla_get_u8(attr); in bridge_parse_protinfo()
110 bd->ce_mask |= BRIDGE_ATTR_PORT_STATE; in bridge_parse_protinfo()
119 bd->b_priv_flags |= PRIV_FLAG_NEW_ATTRS; in bridge_parse_protinfo()
122 bd->b_port_state = nla_get_u8(br_attrs[IFLA_BRPORT_STATE]); in bridge_parse_protinfo()
123 bd->ce_mask |= BRIDGE_ATTR_PORT_STATE; in bridge_parse_protinfo()
127 bd->b_priority = nla_get_u16(br_attrs[IFLA_BRPORT_PRIORITY]); in bridge_parse_protinfo()
128 bd->ce_mask |= BRIDGE_ATTR_PRIORITY; in bridge_parse_protinfo()
132 bd->b_cost = nla_get_u32(br_attrs[IFLA_BRPORT_COST]); in bridge_parse_protinfo()
133 bd->ce_mask |= BRIDGE_ATTR_COST; in bridge_parse_protinfo()
147 struct bridge_data *bd = data; in bridge_dump_details() local
151 if (bd->ce_mask & BRIDGE_ATTR_PORT_STATE) in bridge_dump_details()
152 nl_dump(p, "port-state %u ", bd->b_port_state); in bridge_dump_details()
154 if (bd->ce_mask & BRIDGE_ATTR_PRIORITY) in bridge_dump_details()
155 nl_dump(p, "prio %u ", bd->b_priority); in bridge_dump_details()
157 if (bd->ce_mask & BRIDGE_ATTR_COST) in bridge_dump_details()
158 nl_dump(p, "cost %u ", bd->b_cost); in bridge_dump_details()
262 struct bridge_data *bd; in rtnl_link_bridge_has_ext_info() local
267 bd = bridge_data(link); in rtnl_link_bridge_has_ext_info()
268 return !!(bd->b_priv_flags & PRIV_FLAG_NEW_ATTRS); in rtnl_link_bridge_has_ext_info()
291 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_set_port_state() local
298 bd->b_port_state = state; in rtnl_link_bridge_set_port_state()
299 bd->ce_mask |= BRIDGE_ATTR_PORT_STATE; in rtnl_link_bridge_set_port_state()
315 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_get_port_state() local
319 return bd->b_port_state; in rtnl_link_bridge_get_port_state()
334 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_set_priority() local
338 bd->b_priority = prio; in rtnl_link_bridge_set_priority()
339 bd->ce_mask |= BRIDGE_ATTR_PRIORITY; in rtnl_link_bridge_set_priority()
355 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_get_priority() local
359 return bd->b_priority; in rtnl_link_bridge_get_priority()
374 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_set_cost() local
378 bd->b_cost = cost; in rtnl_link_bridge_set_cost()
379 bd->ce_mask |= BRIDGE_ATTR_COST; in rtnl_link_bridge_set_cost()
397 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_get_cost() local
404 *cost = bd->b_cost; in rtnl_link_bridge_get_cost()
422 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_unset_flags() local
426 bd->b_flags_mask |= flags; in rtnl_link_bridge_unset_flags()
427 bd->b_flags &= ~flags; in rtnl_link_bridge_unset_flags()
428 bd->ce_mask |= BRIDGE_ATTR_FLAGS; in rtnl_link_bridge_unset_flags()
452 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_set_flags() local
456 bd->b_flags_mask |= flags; in rtnl_link_bridge_set_flags()
457 bd->b_flags |= flags; in rtnl_link_bridge_set_flags()
458 bd->ce_mask |= BRIDGE_ATTR_FLAGS; in rtnl_link_bridge_set_flags()
475 struct bridge_data *bd = bridge_data(link); in rtnl_link_bridge_get_flags() local
479 return bd->b_flags; in rtnl_link_bridge_get_flags()