]> git.proxmox.com Git - mirror_ovs.git/blob - lib/rstp-state-machines.h
dpif-netdev: Store actions data and size contiguously.
[mirror_ovs.git] / lib / rstp-state-machines.h
1 /*
2 * Copyright (c) 2011-2014 M3S, Srl - Italy
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * Rapid Spanning Tree Protocol (IEEE 802.1D-2004) state machines
19 * implementation (header file).
20 *
21 * Authors:
22 * Martino Fornasa <mf@fornasa.it>
23 * Daniele Venturino <daniele.venturino@m3s.it>
24 *
25 * References to IEEE 802.1D-2004 standard are enclosed in square brackets.
26 * E.g. [17.3], [Table 17-1], etc.
27 *
28 */
29
30 #ifndef RSTP_STATE_MACHINES_H
31 #define RSTP_STATE_MACHINES_H 1
32
33 #include "rstp-common.h"
34
35 /* Methods called by the Forwarding Layer, through functions of rstp.h. */
36 int move_rstp__(struct rstp *)
37 OVS_REQUIRES(rstp_mutex);
38 void decrease_rstp_port_timers__(struct rstp *)
39 OVS_REQUIRES(rstp_mutex);
40 void process_received_bpdu__(struct rstp_port *, const void *, size_t)
41 OVS_REQUIRES(rstp_mutex);
42
43 void updt_roles_tree__(struct rstp *)
44 OVS_REQUIRES(rstp_mutex);
45
46 #endif /* rstp-state-machines.h */