]>
Commit | Line | Data |
---|---|---|
064af421 BP |
1 | /* Copyright (c) 2009 Nicira Networks |
2 | * | |
a14bc59f BP |
3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
4 | * you may not use this file except in compliance with the License. | |
5 | * You may obtain a copy of the License at: | |
064af421 | 6 | * |
a14bc59f | 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
064af421 | 8 | * |
a14bc59f BP |
9 | * Unless required by applicable law or agreed to in writing, software |
10 | * distributed under the License is distributed on an "AS IS" BASIS, | |
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | * See the License for the specific language governing permissions and | |
13 | * limitations under the License. | |
064af421 BP |
14 | */ |
15 | ||
16 | #ifndef VSWITCHD_PROC_NET_COMPAT_H | |
17 | #define VSWITCHD_PROC_NET_COMPAT_H 1 | |
18 | ||
19 | #include "packets.h" | |
20 | ||
21 | struct compat_bond { | |
22 | bool up; | |
23 | int updelay; | |
24 | int downdelay; | |
2aebae83 BP |
25 | |
26 | int n_hashes; | |
27 | struct compat_bond_hash *hashes; | |
28 | ||
064af421 BP |
29 | int n_slaves; |
30 | struct compat_bond_slave *slaves; | |
31 | }; | |
32 | ||
2aebae83 BP |
33 | struct compat_bond_hash { |
34 | int hash; | |
35 | const char *netdev_name; | |
36 | }; | |
37 | ||
064af421 BP |
38 | struct compat_bond_slave { |
39 | const char *name; | |
40 | bool up; | |
41 | uint8_t mac[ETH_ADDR_LEN]; | |
42 | }; | |
43 | ||
44 | int proc_net_compat_init(void); | |
45 | void proc_net_compat_update_bond(const char *name, const struct compat_bond *); | |
46 | void proc_net_compat_update_vlan(const char *dev, const char *vlandev, | |
47 | int vlan); | |
48 | ||
49 | #endif /* vswitchd/proc-net-compat.h */ |