netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Maloy <jon.maloy@ericsson.com>
To: David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"paul.gortmaker@windriver.com" <paul.gortmaker@windriver.com>,
	"tipc-discussion@lists.sourceforge.net"
	<tipc-discussion@lists.sourceforge.net>
Subject: Re: [PATCH net-next 3/7] tipc: add new functions for multicast and broadcast distribution
Date: Wed, 16 Jul 2014 22:21:04 +0000	[thread overview]
Message-ID: <A2BAEFC30C8FD34388F02C9B3121859D1C289DE7@eusaamb103.ericsson.se> (raw)
In-Reply-To: <20140716.151050.974076735111970390.davem@davemloft.net>



> -----Original Message-----
> From: David Miller [mailto:davem@davemloft.net]
> Sent: July-16-14 6:11 PM
> To: Jon Maloy
> Cc: netdev@vger.kernel.org; paul.gortmaker@windriver.com; Erik Hugne;
> ying.xue@windriver.com; maloy@donjonn.com; tipc-
> discussion@lists.sourceforge.net
> Subject: Re: [PATCH net-next 3/7] tipc: add new functions for multicast and
> broadcast distribution
> 
> From: Jon Maloy <jon.maloy@ericsson.com>
> Date: Tue, 15 Jul 2014 13:46:06 -0400
> 
> > +	/* Copy header if single buffer */
> > +	if (!buf->next) {
> > +		hdr_sz = skb_headroom(buf) + msg_hdr_sz(buf_msg(buf));
> > +		head = __pskb_copy(buf, hdr_sz, GFP_ATOMIC);
> > +		if (likely(head))
> > +			return head;
> > +		return NULL;
> 
> These last four lines are simply:
> 
> 		return __pskb_copy(buf, hdr_sz, GFP_ATOMIC);
> 
> Don't make this code more complicated than necessary :)

Uhh...  Of course.  I think I changed this code back and forth too many times.
If that is all,  I'll post the series again asap.

///jon

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

  reply	other threads:[~2014-07-16 22:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 17:46 [PATCH net-next 0/7] tipc: multicast and internal users to new send functions Jon Maloy
2014-07-15 17:46 ` [PATCH net-next 1/7] tipc: make name table distributor use new send function Jon Maloy
2014-07-15 17:46 ` [PATCH net-next 2/7] tipc: let internal link users call the new link " Jon Maloy
2014-07-15 17:46 ` [PATCH net-next 3/7] tipc: add new functions for multicast and broadcast distribution Jon Maloy
2014-07-16 22:10   ` David Miller
2014-07-16 22:21     ` Jon Maloy [this message]
2014-07-15 17:46 ` [PATCH net-next 4/7] tipc: start using the new multicast functions Jon Maloy
2014-07-15 17:46 ` [PATCH net-next 5/7] tipc: remove unreferenced functions Jon Maloy
2014-07-15 17:46 ` [PATCH net-next 6/7] tipc: rename temporarily named functions Jon Maloy
2014-07-15 17:46 ` [PATCH net-next 7/7] tipc: ensure sequential message delivery across dual bearers Jon Maloy
  -- strict thread matches above, loose matches on Subject: below --
2014-07-15 14:49 [PATCH net-next 0/7] tipc: multicast and internal users to new send functions Jon Maloy
2014-07-15 14:49 ` [PATCH net-next 3/7] tipc: add new functions for multicast and broadcast distribution Jon Maloy
2014-07-15  3:54 [PATCH net-next 0/7] tipc: multicast and internal users to new send functions Jon Maloy
2014-07-15  3:54 ` [PATCH net-next 3/7] tipc: add new functions for multicast and broadcast distribution Jon Maloy

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=A2BAEFC30C8FD34388F02C9B3121859D1C289DE7@eusaamb103.ericsson.se \
    --to=jon.maloy@ericsson.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=tipc-discussion@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).