Home
last modified time | relevance | path

Searched refs:bridge_id (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.10/net/bridge/
Dbr_stp_bpdu.c104 buf[17] = bpdu->bridge_id.prio[0]; in br_send_config_bpdu()
105 buf[18] = bpdu->bridge_id.prio[1]; in br_send_config_bpdu()
106 buf[19] = bpdu->bridge_id.addr[0]; in br_send_config_bpdu()
107 buf[20] = bpdu->bridge_id.addr[1]; in br_send_config_bpdu()
108 buf[21] = bpdu->bridge_id.addr[2]; in br_send_config_bpdu()
109 buf[22] = bpdu->bridge_id.addr[3]; in br_send_config_bpdu()
110 buf[23] = bpdu->bridge_id.addr[4]; in br_send_config_bpdu()
111 buf[24] = bpdu->bridge_id.addr[5]; in br_send_config_bpdu()
213 bpdu.bridge_id.prio[0] = buf[14]; in br_stp_rcv()
214 bpdu.bridge_id.prio[1] = buf[15]; in br_stp_rcv()
[all …]
Dbr_private_stp.h31 bridge_id root;
33 bridge_id bridge_id; member
44 return !memcmp(&p->designated_bridge, &p->br->bridge_id, 8) && in br_is_designated_port()
Dbr_stp_if.c234 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id()
235 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id()
274 if (ether_addr_equal(br->bridge_id.addr, addr)) in br_stp_recalculate_bridge_id()
299 br->bridge_id.prio[0] = (newprio >> 8) & 0xFF; in br_stp_set_bridge_priority()
300 br->bridge_id.prio[1] = newprio & 0xFF; in br_stp_set_bridge_priority()
322 if (!memcmp(&p->br->bridge_id, &p->designated_bridge, 8) && in br_stp_set_port_priority()
345 ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id) in br_show_bridge_id()
Dbr_stp.c94 if (memcmp(&br->bridge_id, &p->designated_root, 8) <= 0) in br_should_become_root_port()
165 br->designated_root = br->bridge_id; in br_root_selection()
206 bpdu.bridge_id = br->bridge_id; in br_transmit_config()
236 p->designated_bridge = bpdu->bridge_id; in br_record_config_information()
285 t = memcmp(&br->bridge_id, &p->designated_bridge, 8); in br_should_become_designated_port()
327 t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8); in br_supersedes_port_info()
333 if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8)) in br_supersedes_port_info()
405 p->designated_bridge = br->bridge_id; in br_become_designated_port()
Dbr_private.h53 typedef struct bridge_id bridge_id; typedef
57 struct bridge_id { struct
302 bridge_id designated_root;
303 bridge_id designated_bridge;
408 bridge_id designated_root;
409 bridge_id bridge_id; member
536 return !memcmp(&br->bridge_id, &br->designated_root, 8); in br_is_root_bridge()
1409 ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id);
Dbr_stp_timer.c23 !memcmp(&p->designated_bridge, &br->bridge_id, 8)) in br_is_designated_for_some_port()
50 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired()
Dbr_device.c469 br->bridge_id.prio[0] = 0x80; in br_dev_setup()
470 br->bridge_id.prio[1] = 0x00; in br_dev_setup()
478 br->designated_root = br->bridge_id; in br_dev_setup()
Dbr_ioctl.c131 memcpy(&b.bridge_id, &br->bridge_id, 8); in old_dev_ioctl()
Dbr_sysfs_br.c172 (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]); in priority_show()
198 return br_show_bridge_id(buf, &to_bridge(d)->bridge_id); in bridge_id_show()
200 static DEVICE_ATTR_RO(bridge_id);
Dbr_netlink.c1449 u16 priority = (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]; in br_fill_info()
1478 &br->bridge_id) || in br_fill_info()
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.h163 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id);
164 int prestera_hw_bridge_delete(struct prestera_switch *sw, u16 bridge_id);
165 int prestera_hw_bridge_port_add(struct prestera_port *port, u16 bridge_id);
166 int prestera_hw_bridge_port_delete(struct prestera_port *port, u16 bridge_id);
Dprestera_switchdev.c43 u16 bridge_id; member
232 u16 bridge_id; in prestera_bridge_create() local
247 err = prestera_hw_bridge_create(swdev->sw, &bridge_id); in prestera_bridge_create()
253 bridge->bridge_id = bridge_id; in prestera_bridge_create()
276 prestera_hw_bridge_delete(swdev->sw, bridge->bridge_id); in prestera_bridge_destroy()
403 err = prestera_hw_bridge_port_add(port, bridge->bridge_id); in prestera_bridge_1d_port_join()
420 prestera_hw_bridge_port_delete(port, bridge->bridge_id); in prestera_bridge_1d_port_join()
475 prestera_hw_bridge_port_delete(port, br_port->bridge->bridge_id); in prestera_bridge_1d_port_leave()
686 vid = br_port->bridge->bridge_id; in presterar_port_attr_stp_state_set()
786 vid = bridge->bridge_id; in prestera_port_fdb_set()
Dprestera_hw.c1134 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id) in prestera_hw_bridge_create() argument
1146 *bridge_id = resp.bridge; in prestera_hw_bridge_create()
1151 int prestera_hw_bridge_delete(struct prestera_switch *sw, u16 bridge_id) in prestera_hw_bridge_delete() argument
1154 .bridge = bridge_id, in prestera_hw_bridge_delete()
1161 int prestera_hw_bridge_port_add(struct prestera_port *port, u16 bridge_id) in prestera_hw_bridge_port_add() argument
1164 .bridge = bridge_id, in prestera_hw_bridge_port_add()
1173 int prestera_hw_bridge_port_delete(struct prestera_port *port, u16 bridge_id) in prestera_hw_bridge_port_delete() argument
1176 .bridge = bridge_id, in prestera_hw_bridge_port_delete()
/Linux-v5.10/include/linux/
Dagpgart.h35 u32 bridge_id; /* bridge vendor/device */ member
/Linux-v5.10/include/uapi/linux/
Dagpgart.h64 __u32 bridge_id; /* bridge vendor/device */ member
Dif_bridge.h57 __u64 bridge_id; member
/Linux-v5.10/drivers/char/agp/
Dcompat_ioctl.h46 u32 bridge_id; /* bridge vendor/device */ member
Dcompat_ioctl.c47 userinfo.bridge_id = kerninfo.device->vendor | in compat_agpioc_info_wrap()
Dfrontend.c721 userinfo.bridge_id = kerninfo.device->vendor | in agpioc_info_wrap()