aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2006-04-04 12:59:40 -0400
committerRoland Dreier <rolandd@cisco.com>2006-04-04 17:46:48 -0400
commitd2e0655ede1d91c3a586455d03a4a2d57e659830 (patch)
treee507e7c6dee32cb7ea8ebe0fc2024f81cf0f9b0f /drivers/infiniband/ulp/ipoib/ipoib.h
parentce1823f0323be9f38bbe0df229a5bba025404923 (diff)
IPoIB: Consolidate private neighbour data handling
Consolidate IPoIB's private neighbour data handling into ipoib_neigh_alloc() and ipoib_neigh_free(). This will make it easier to keep track of the neighbour structures that IPoIB is handling, and is a nice cleanup of the code: add/remove: 2/1 grow/shrink: 1/8 up/down: 100/-178 (-78) function old new delta ipoib_neigh_alloc - 61 +61 ipoib_neigh_free - 36 +36 ipoib_mcast_join_finish 1288 1291 +3 path_rec_completion 575 573 -2 ipoib_mcast_join_task 664 660 -4 ipoib_neigh_destructor 101 92 -9 ipoib_neigh_setup_dev 14 3 -11 ipoib_neigh_setup 17 - -17 path_free 238 215 -23 ipoib_mcast_free 329 306 -23 ipoib_mcast_send 718 684 -34 neigh_add_path 705 650 -55 Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index b640107fb732..374109df7303 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -230,6 +230,9 @@ static inline struct ipoib_neigh **to_ipoib_neigh(struct neighbour *neigh)
230 INFINIBAND_ALEN, sizeof(void *)); 230 INFINIBAND_ALEN, sizeof(void *));
231} 231}
232 232
233struct ipoib_neigh *ipoib_neigh_alloc(struct neighbour *neigh);
234void ipoib_neigh_free(struct ipoib_neigh *neigh);
235
233extern struct workqueue_struct *ipoib_workqueue; 236extern struct workqueue_struct *ipoib_workqueue;
234 237
235/* functions */ 238/* functions */