diff options
Diffstat (limited to 'net/tipc/bearer.h')
-rw-r--r-- | net/tipc/bearer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index 54a5a575d69a..cfe77c4b20f9 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h | |||
@@ -118,6 +118,8 @@ struct media { | |||
118 | * @name: bearer name (format = media:interface) | 118 | * @name: bearer name (format = media:interface) |
119 | * @media: ptr to media structure associated with bearer | 119 | * @media: ptr to media structure associated with bearer |
120 | * @priority: default link priority for bearer | 120 | * @priority: default link priority for bearer |
121 | * @window: default window size for bearer | ||
122 | * @tolerance: default link tolerance for bearer | ||
121 | * @identity: array index of this bearer within TIPC bearer array | 123 | * @identity: array index of this bearer within TIPC bearer array |
122 | * @link_req: ptr to (optional) structure making periodic link setup requests | 124 | * @link_req: ptr to (optional) structure making periodic link setup requests |
123 | * @links: list of non-congested links associated with bearer | 125 | * @links: list of non-congested links associated with bearer |
@@ -139,6 +141,8 @@ struct tipc_bearer { | |||
139 | spinlock_t lock; | 141 | spinlock_t lock; |
140 | struct media *media; | 142 | struct media *media; |
141 | u32 priority; | 143 | u32 priority; |
144 | u32 window; | ||
145 | u32 tolerance; | ||
142 | u32 identity; | 146 | u32 identity; |
143 | struct link_req *link_req; | 147 | struct link_req *link_req; |
144 | struct list_head links; | 148 | struct list_head links; |
@@ -176,6 +180,8 @@ int tipc_disable_bearer(const char *name); | |||
176 | int tipc_eth_media_start(void); | 180 | int tipc_eth_media_start(void); |
177 | void tipc_eth_media_stop(void); | 181 | void tipc_eth_media_stop(void); |
178 | 182 | ||
183 | int tipc_media_set_priority(const char *name, u32 new_value); | ||
184 | int tipc_media_set_window(const char *name, u32 new_value); | ||
179 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a); | 185 | void tipc_media_addr_printf(struct print_buf *pb, struct tipc_media_addr *a); |
180 | struct sk_buff *tipc_media_get_names(void); | 186 | struct sk_buff *tipc_media_get_names(void); |
181 | 187 | ||
@@ -183,7 +189,9 @@ struct sk_buff *tipc_bearer_get_names(void); | |||
183 | void tipc_bearer_add_dest(struct tipc_bearer *b_ptr, u32 dest); | 189 | void tipc_bearer_add_dest(struct tipc_bearer *b_ptr, u32 dest); |
184 | void tipc_bearer_remove_dest(struct tipc_bearer *b_ptr, u32 dest); | 190 | void tipc_bearer_remove_dest(struct tipc_bearer *b_ptr, u32 dest); |
185 | void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct link *l_ptr); | 191 | void tipc_bearer_schedule(struct tipc_bearer *b_ptr, struct link *l_ptr); |
192 | struct tipc_bearer *tipc_bearer_find(const char *name); | ||
186 | struct tipc_bearer *tipc_bearer_find_interface(const char *if_name); | 193 | struct tipc_bearer *tipc_bearer_find_interface(const char *if_name); |
194 | struct media *tipc_media_find(const char *name); | ||
187 | int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, struct link *l_ptr); | 195 | int tipc_bearer_resolve_congestion(struct tipc_bearer *b_ptr, struct link *l_ptr); |
188 | int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr); | 196 | int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr); |
189 | void tipc_bearer_stop(void); | 197 | void tipc_bearer_stop(void); |