From: David Miller <davem@davemloft.net>
To: dlstevens@us.ibm.com
Cc: shemminger@vyatta.com, amwang@redhat.com, netdev@vger.kernel.org
Subject: Re: [PATCH v6] vxlan: fix nonfunctional neigh_reduce()
Date: Mon, 24 Mar 2014 15:35:42 -0400 (EDT) [thread overview]
Message-ID: <20140324.153542.98521112335550166.davem@davemloft.net> (raw)
In-Reply-To: <201403241439.s2OEdwi0002321@xl.dls>
From: David L Stevens <dlstevens@us.ibm.com>
Date: Mon, 24 Mar 2014 10:39:58 -0400
>
> The VXLAN neigh_reduce() code is completely non-functional since
> check-in. Specific errors:
>
> 1) The original code drops all packets with a multicast destination address,
> even though neighbor solicitations are sent to the solicited-node
> address, a multicast address. The code after this check was never run.
> 2) The neighbor table lookup used the IPv6 header destination, which is the
> solicited node address, rather than the target address from the
> neighbor solicitation. So neighbor lookups would always fail if it
> got this far. Also for L3MISSes.
> 3) The code calls ndisc_send_na(), which does a send on the tunnel device.
> The context for neigh_reduce() is the transmit path, vxlan_xmit(),
> where the host or a bridge-attached neighbor is trying to transmit
> a neighbor solicitation. To respond to it, the tunnel endpoint needs
> to do a *receive* of the appropriate neighbor advertisement. Doing a
> send, would only try to send the advertisement, encapsulated, to the
> remote destinations in the fdb -- hosts that definitely did not do the
> corresponding solicitation.
> 4) The code uses the tunnel endpoint IPv6 forwarding flag to determine the
> isrouter flag in the advertisement. This has nothing to do with whether
> or not the target is a router, and generally won't be set since the
> tunnel endpoint is bridging, not routing, traffic.
>
> The patch below creates a proxy neighbor advertisement to respond to
> neighbor solicitions as intended, providing proper IPv6 support for neighbor
> reduction.
>
> Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
Applied and queued up for -stable, thanks David.
prev parent reply other threads:[~2014-03-24 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 14:39 [PATCH v6] vxlan: fix nonfunctional neigh_reduce() David L Stevens
2014-03-24 19:35 ` David Miller [this message]
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=20140324.153542.98521112335550166.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=amwang@redhat.com \
--cc=dlstevens@us.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/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).