summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2016-09-10 12:09:59 -0700
committerDavid S. Miller <davem@davemloft.net>2016-09-10 23:12:53 -0700
commit8a966fc016b67d2a8ab4a83d22ded8cde032a0eb (patch)
tree2cbab40ee68d47275ac7cf583ab1a5197bd6bd96 /net/ipv6
parentd66f6c0a8f3c0bcc4ee7a9b1da4b0ebe7ee555a3 (diff)
downloadlinux-8a966fc016b67d2a8ab4a83d22ded8cde032a0eb.tar.gz
linux-8a966fc016b67d2a8ab4a83d22ded8cde032a0eb.tar.bz2
linux-8a966fc016b67d2a8ab4a83d22ded8cde032a0eb.zip
net: ipv6: Remove l3mdev_get_saddr6
No longer needed Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ip6_output.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 1cb41b365048..6001e781164e 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -926,13 +926,6 @@ static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk,
int err;
int flags = 0;
- if (ipv6_addr_any(&fl6->saddr) && fl6->flowi6_oif &&
- (!*dst || !(*dst)->error)) {
- err = l3mdev_get_saddr6(net, sk, fl6);
- if (err)
- goto out_err;
- }
-
/* The correct way to handle this would be to do
* ip6_route_get_saddr, and then ip6_route_output; however,
* the route-specific preferred source forces the
@@ -1024,7 +1017,7 @@ static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk,
out_err_release:
dst_release(*dst);
*dst = NULL;
-out_err:
+
if (err == -ENETUNREACH)
IP6_INC_STATS(net, NULL, IPSTATS_MIB_OUTNOROUTES);
return err;