Home
last modified time | relevance | path

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

/linux-6.6.21/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.c114 if (memcmp(&br->bridge_id, &p->designated_root, 8) <= 0) in br_should_become_root_port()
185 br->designated_root = br->bridge_id; in br_root_selection()
226 bpdu.bridge_id = br->bridge_id; in br_transmit_config()
256 p->designated_bridge = bpdu->bridge_id; in br_record_config_information()
305 t = memcmp(&br->bridge_id, &p->designated_bridge, 8); in br_should_become_designated_port()
347 t = memcmp(&bpdu->bridge_id, &p->designated_bridge, 8); in br_supersedes_port_info()
353 if (memcmp(&bpdu->bridge_id, &p->br->bridge_id, 8)) in br_supersedes_port_info()
425 p->designated_bridge = br->bridge_id; in br_become_designated_port()
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_private.h58 typedef struct bridge_id bridge_id; typedef
62 struct bridge_id { struct
400 bridge_id designated_root;
401 bridge_id designated_bridge;
510 bridge_id designated_root;
511 bridge_id bridge_id; member
639 return !memcmp(&br->bridge_id, &br->designated_root, 8); in br_is_root_bridge()
1965 ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id);
Dbr_device.c518 br->bridge_id.prio[0] = 0x80; in br_dev_setup()
519 br->bridge_id.prio[1] = 0x00; in br_dev_setup()
527 br->designated_root = br->bridge_id; in br_dev_setup()
Dbr_ioctl.c169 memcpy(&b.bridge_id, &br->bridge_id, 8); in br_dev_siocdevprivate()
Dbr_sysfs_br.c204 (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]); in priority_show()
231 return br_show_bridge_id(buf, &to_bridge(d)->bridge_id); in bridge_id_show()
233 static DEVICE_ATTR_RO(bridge_id);
Dbr_netlink.c1633 u16 priority = (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]; in br_fill_info()
1662 &br->bridge_id) || in br_fill_info()
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.h210 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id);
211 int prestera_hw_bridge_delete(struct prestera_switch *sw, u16 bridge_id);
212 int prestera_hw_bridge_port_add(struct prestera_port *port, u16 bridge_id);
213 int prestera_hw_bridge_port_delete(struct prestera_port *port, u16 bridge_id);
Dprestera_switchdev.c46 u16 bridge_id; member
438 u16 bridge_id; in prestera_bridge_create() local
453 err = prestera_hw_bridge_create(swdev->sw, &bridge_id); in prestera_bridge_create()
459 bridge->bridge_id = bridge_id; in prestera_bridge_create()
484 prestera_hw_bridge_delete(swdev->sw, bridge->bridge_id); in prestera_bridge_destroy()
632 err = prestera_hw_bridge_port_add(port, bridge->bridge_id); in prestera_bridge_1d_port_join()
643 prestera_hw_bridge_port_delete(port, bridge->bridge_id); in prestera_bridge_1d_port_join()
704 prestera_hw_bridge_port_delete(port, br_port->bridge->bridge_id); in prestera_bridge_1d_port_leave()
846 vid = br_port->bridge->bridge_id; in prestera_port_attr_stp_state_set()
1235 vid = bridge->bridge_id; in prestera_port_fdb_set()
[all …]
Dprestera_hw.c1928 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id) in prestera_hw_bridge_create() argument
1940 *bridge_id = __le16_to_cpu(resp.bridge); in prestera_hw_bridge_create()
1945 int prestera_hw_bridge_delete(struct prestera_switch *sw, u16 bridge_id) in prestera_hw_bridge_delete() argument
1948 .bridge = __cpu_to_le16(bridge_id), in prestera_hw_bridge_delete()
1955 int prestera_hw_bridge_port_add(struct prestera_port *port, u16 bridge_id) in prestera_hw_bridge_port_add() argument
1958 .bridge = __cpu_to_le16(bridge_id), in prestera_hw_bridge_port_add()
1967 int prestera_hw_bridge_port_delete(struct prestera_port *port, u16 bridge_id) in prestera_hw_bridge_port_delete() argument
1970 .bridge = __cpu_to_le16(bridge_id), in prestera_hw_bridge_port_delete()
/linux-6.6.21/include/linux/
Dagpgart.h35 u32 bridge_id; /* bridge vendor/device */ member
/linux-6.6.21/include/uapi/linux/
Dagpgart.h63 __u32 bridge_id; /* bridge vendor/device */ member
Dif_bridge.h57 __u64 bridge_id; member
/linux-6.6.21/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.c723 userinfo.bridge_id = kerninfo.device->vendor | in agpioc_info_wrap()