hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/mac80211/mesh.h
....@@ -127,26 +127,6 @@
127127 u32 path_change_count;
128128 };
129129
130
-/**
131
- * struct mesh_table
132
- *
133
- * @known_gates: list of known mesh gates and their mpaths by the station. The
134
- * gate's mpath may or may not be resolved and active.
135
- * @gates_lock: protects updates to known_gates
136
- * @rhead: the rhashtable containing struct mesh_paths, keyed by dest addr
137
- * @walk_head: linked list containging all mesh_path objects
138
- * @walk_lock: lock protecting walk_head
139
- * @entries: number of entries in the table
140
- */
141
-struct mesh_table {
142
- struct hlist_head known_gates;
143
- spinlock_t gates_lock;
144
- struct rhashtable rhead;
145
- struct hlist_head walk_head;
146
- spinlock_t walk_lock;
147
- atomic_t entries; /* Up to MAX_MESH_NEIGHBOURS */
148
-};
149
-
150130 /* Recent multicast cache */
151131 /* RMC_BUCKETS must be a power of 2, maximum 256 */
152132 #define RMC_BUCKETS 256
....@@ -308,7 +288,7 @@
308288 void mesh_path_assign_nexthop(struct mesh_path *mpath, struct sta_info *sta);
309289 void mesh_path_flush_pending(struct mesh_path *mpath);
310290 void mesh_path_tx_pending(struct mesh_path *mpath);
311
-int mesh_pathtbl_init(struct ieee80211_sub_if_data *sdata);
291
+void mesh_pathtbl_init(struct ieee80211_sub_if_data *sdata);
312292 void mesh_pathtbl_unregister(struct ieee80211_sub_if_data *sdata);
313293 int mesh_path_del(struct ieee80211_sub_if_data *sdata, const u8 *addr);
314294 void mesh_path_timer(struct timer_list *t);