[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120612.185220.1209592106225618525.davem@davemloft.net>
Date: Tue, 12 Jun 2012 18:52:20 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: michel@...irati.com.br
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kuznet@....inr.ac.ru, jmorris@...ei.org, yoshfuji@...ux-ipv6.org,
kaber@...sh.net, edumazet@...gle.com, jpirko@...hat.com,
mirq-linux@...e.qmqm.pl, bhutchings@...arflare.com
Subject: Re: [PATCH 1/1] net-next: add dev_loopback_xmit() to avoid
duplicate code
From: Michel Machado <michel@...irati.com.br>
Date: Tue, 12 Jun 2012 16:16:35 -0400
> Add dev_loopback_xmit() in order to deduplicate functions
> ip_dev_loopback_xmit() (in net/ipv4/ip_output.c) and
> ip6_dev_loopback_xmit() (in net/ipv6/ip6_output.c).
>
> I was about to reinvent the wheel when I noticed that
> ip_dev_loopback_xmit() and ip6_dev_loopback_xmit() do exactly what I
> need and are not IP-only functions, but they were not available to reuse
> elsewhere.
>
> ip6_dev_loopback_xmit() does not have line "skb_dst_force(skb);", but I
> understand that this is harmless, and should be in dev_loopback_xmit().
>
> Signed-off-by: Michel Machado <michel@...irati.com.br>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists