All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-2ukJVAZIZ/Y@public.gmane.org>
To: Christoph Lameter <cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
	Erez Shitrit <erezsh-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH 1/2] Isolate common list remove code
Date: Mon, 21 Dec 2015 16:57:12 +0200	[thread overview]
Message-ID: <20151221145712.GA11603@leon.nu> (raw)
In-Reply-To: <20151221144303.357400814-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>

On Mon, Dec 21, 2015 at 08:42:53AM -0600, Christoph Lameter wrote:
> 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: Iraq Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Iraq Weiny --> Ira Weiny

....
> +void ipoib_mcast_remove_list(struct net_device *dev, struct list_head *remove_list)
Will it be beneficial to inline this function?
> +{
> +	struct ipoib_mcast *mcast, *tmcast;
> +
> +	list_for_each_entry_safe(mcast, tmcast, remove_list, list) {
> +		ipoib_mcast_leave(dev, mcast);
> +		ipoib_mcast_free(mcast);
> +	}
> +}
> +
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2015-12-21 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21 14:42 [PATCH 0/2] IB multicast cleanup patches V2 Christoph Lameter
2015-12-21 14:42 ` [PATCH 1/2] Isolate common list remove code Christoph Lameter
     [not found]   ` <20151221144303.357400814-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
2015-12-21 14:57     ` Leon Romanovsky [this message]
     [not found]       ` <20151221145712.GA11603-2ukJVAZIZ/Y@public.gmane.org>
2015-12-21 15:08         ` Christoph Lameter
2015-12-21 14:42 ` [PATCH 2/2] Move multicast specific code out of ipoib_main.c Christoph Lameter
     [not found] ` <20151221144252.575119561-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org>
2015-12-23 18:11   ` [PATCH 0/2] IB multicast cleanup patches V2 Doug Ledford
     [not found]     ` <567AE3BF.6020407-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-12-23 20:02       ` ira.weiny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151221145712.GA11603@leon.nu \
    --to=leon-2ukjvaziz/y@public.gmane.org \
    --cc=cl-vYTEC60ixJUAvxtiuMwx3w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=erezsh-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.