]> err.no Git - linux-2.6/commit
IPoIB: Consolidate private neighbour data handling
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 4 Apr 2006 16:59:40 +0000 (19:59 +0300)
committerRoland Dreier <rolandd@cisco.com>
Tue, 4 Apr 2006 21:46:48 +0000 (14:46 -0700)
commitd2e0655ede1d91c3a586455d03a4a2d57e659830
treee507e7c6dee32cb7ea8ebe0fc2024f81cf0f9b0f
parentce1823f0323be9f38bbe0df229a5bba025404923
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>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c