diff options
author | Michel Machado <michel@digirati.com.br> | 2012-06-12 14:16:35 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-13 05:51:09 +0400 |
commit | 95603e2293de556de7e82221649bfd7fd98b64a3 (patch) | |
tree | d90e7570b072f62ee4fefa619b93ec771bfd9f95 /kernel/resource.c | |
parent | de063b7040dcd9fbc9a1847fa44f0af13e19d6de (diff) | |
download | linux-95603e2293de556de7e82221649bfd7fd98b64a3.tar.xz |
net-next: add dev_loopback_xmit() to avoid duplicate code
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@digirati.com.br>
CC: "David S. Miller" <davem@davemloft.net>
CC: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
CC: James Morris <jmorris@namei.org>
CC: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
CC: Patrick McHardy <kaber@trash.net>
CC: Eric Dumazet <edumazet@google.com>
CC: Jiri Pirko <jpirko@redhat.com>
CC: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
CC: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions