diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2014-11-19 09:24:52 -0800 |
---|---|---|
committer | Jarno Rajahalme <jrajahalme@nicira.com> | 2014-11-19 09:24:52 -0800 |
commit | 2372c146f7afa2b12e7b60375c728796ff985038 (patch) | |
tree | 27766d6d71b99eafbbfbdd8750e0d0638962cfdc /lib/rstp.h | |
parent | 802f84ffd71a6c94234cec43f4a5abaf02b56fa8 (diff) | |
download | openvswitch-2372c146f7afa2b12e7b60375c728796ff985038.tar.gz |
rstp: shift learned MAC addresses to new Root port.
All MAC addresses previously learned on a Root Port can be moved to an
Alternate Port that becomes the new Root Port; i.e., Dynamic Filtering
Entries for those addresses may be modified to show the new Root Port as
their source, reducing the need to flood frames when recovering from
some component failures.
Signed-off-by: Daniele Venturino <daniele.venturino@m3s.it>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Diffstat (limited to 'lib/rstp.h')
-rw-r--r-- | lib/rstp.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/rstp.h b/lib/rstp.h index b05cdf24a..8b5776191 100644 --- a/lib/rstp.h +++ b/lib/rstp.h @@ -164,6 +164,14 @@ void *rstp_get_next_changed_port_aux(struct rstp *, struct rstp_port **) void rstp_port_set_mac_operational(struct rstp_port *, bool new_mac_operational) OVS_EXCLUDED(rstp_mutex); +bool rstp_shift_root_learned_address(struct rstp *) + OVS_EXCLUDED(rstp_mutex); +void *rstp_get_old_root_aux(struct rstp *) + OVS_EXCLUDED(rstp_mutex); +void *rstp_get_new_root_aux(struct rstp *) + OVS_EXCLUDED(rstp_mutex); +void rstp_reset_root_changed(struct rstp *) + OVS_EXCLUDED(rstp_mutex); /* Bridge setters */ void rstp_set_bridge_address(struct rstp *, rstp_identifier bridge_address) @@ -232,8 +240,8 @@ void rstp_port_get_status(const struct rstp_port *, uint16_t *id, int *rx_count, int *error_count, int *uptime) OVS_EXCLUDED(rstp_mutex); -void * rstp_get_port_aux(struct rstp *rstp, uint16_t port_number) - OVS_EXCLUDED(rstp_mutex); +void * rstp_get_port_aux__(struct rstp *rstp, uint16_t port_number) + OVS_REQUIRES(rstp_mutex); /* Internal API for rstp-state-machines.c */ |