IB/IPoIB: factor out common multicast list removal code
authorChristoph Lameter <cl@linux.com>
Mon, 21 Dec 2015 14:42:53 +0000 (08:42 -0600)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 19:28:00 +0000 (14:28 -0500)
commit5a0e81f6f4838816a265b948a6439c9fcd76b017
tree8f30eb44529e6691bc78ee355a37b60da71ec3d2
parente53505a802048dc0292609c56411ffdaad013c8e
IB/IPoIB: factor out common multicast list removal code

Code cleanup to remove multicast specific code from ipoib_main.c

The removal of a list of multicast groups occurs in three places.
Create a new function ipoib_mcast_remove_list(). Use this new
function in ipoib_main.c too.
That in turn allows the dropping of two functions that were
exported from ipoib_multicast.c for expiration of mc groups.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c