From: Alexis Bauvin <abauvin@scaleway.com>
To: Roopa Prabhu <roopa@cumulusnetworks.com>,
David Ahern <dsa@cumulusnetworks.com>
Cc: netdev <netdev@vger.kernel.org>,
akherbouche@scaleway.com, Alexis Bauvin <abauvin@scaleway.com>
Subject: Re: [RFC v4 3/5] vxlan: add support for underlay in non-default VRF
Date: Mon, 26 Nov 2018 20:06:26 +0100 [thread overview]
Message-ID: <23FB5447-CE8C-4EB4-B3FC-4B5BBCEE03AF@scaleway.com> (raw)
In-Reply-To: <CAJieiUiA=2JTsLD_siZnVemQEgoyepMWi2YoQ+ixxAEzvF3o3w@mail.gmail.com>
Le 26 nov. 2018 à 19:26, Roopa Prabhu <roopa@cumulusnetworks.com> a écrit :
>
> On Mon, Nov 26, 2018 at 9:54 AM David Ahern <dsa@cumulusnetworks.com> wrote:
>>
>> On 11/26/18 9:32 AM, Alexis Bauvin wrote:
>>> Thanks for the review. I’ll send a v5 if you have no other comment on
>>> this version!
>>
>> A few comments on the test script; see attached which has the changes.
>>
>> Mainly the cleanup does not need to be called at the end since you setup
>> the exit trap. The cleanup calls ip to delete veth-hv-1 and veth-tap but
>> those are moved to other namespaces. 'ip netns exec NAME ip ...' is more
>> efficiently done as 'ip -netns NAME ...'. The test results should align
>> like this:
>>
>> Checking HV connectivity [ OK ]
>> Check VM connectivity through VXLAN (underlay in the default VRF) [ OK ]
>> Check VM connectivity through VXLAN (underlay in a VRF) [ OK ]
>>
>> So it is easy for users to see the PASS/FAIL.
>>
>> It would be good to copy the topology ascii art into the test script as
>> well for future users.
>>
>> Also, add the test as a separate patch at the end and include it in
>> tools/testing/selftests/net/Makefile
>>
>> Finally, I think you should drop the RFC and send it as a 'ready for
>> inclusion'.
>
> I cant seem to find patch 5 in my mail box... so commenting here
> (Using reference to patch5 from here
> https://marc.info/?l=linux-netdev&m=154284885815549&w=2)
>
> Still not convinced that the auto reopen is justified here IMO because
> it can be done from user-space and there are many cases where this is
> already done from user-space. A few questions for alexis on that,
I do agree on this. The test shows that a simple down/up is enough, and
the patch was written as a mere convenience.
> - What is the reason for handling NETDEV_CHANGE on the vxlan device
> from the notifier handler. It can be really done in the changelink
> handler, correct ?
Looks correct to me. The reason is nothing more than me not thinking
about the netlink handlers.
> - Also, IIUC, patch5 blindly re-opens the vxlan device without
> considering if the admin had set it to down last (ie the last state on
> it was vxlan_close). is that correct ?
It is correct. This is a big oversight from my side, that could have
led to crashes. Fortunately the underlying code will check if the
sockets are null (which they are if the interface is down) before
accessing them.
> (Don't want to block the entire series for just patch5. Patch5 can be
> done incrementally after we converge on it. The rest of the series
> looks good as David has already reviewed. And nice to see the test!).
Thanks!
Given the aforementioned oversight when handling a down interface, it is
best to wait for a better solution for this patch.
Moreover, the issue of mixing default and non-default vrf needs to be
addressed. For now it is stale, as I don’t see any solution (except for
rewriting the whole thing as you suggested before) to address the
"Address already in use" made by a socket of the default vrf owning the
port across all vrfs.
I tested both Vyatta’s changes and SO_REUSEPORT, and neither of them seem
to work for this case.
next prev parent reply other threads:[~2018-11-27 6:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-22 1:07 [RFC v4 0/5] Add VRF support for VXLAN underlay Alexis Bauvin
2018-11-22 1:07 ` [RFC v4 1/5] udp_tunnel: add config option to bind to a device Alexis Bauvin
2018-11-22 17:10 ` David Ahern
2018-11-22 1:07 ` [RFC v4 2/5] l3mdev: add function to retreive upper master Alexis Bauvin
2018-11-22 17:11 ` David Ahern
2018-11-22 1:07 ` [RFC v4 3/5] vxlan: add support for underlay in non-default VRF Alexis Bauvin
2018-11-22 17:19 ` David Ahern
2018-11-26 16:32 ` Alexis Bauvin
2018-11-26 17:54 ` David Ahern
2018-11-26 18:26 ` Roopa Prabhu
2018-11-26 19:06 ` Alexis Bauvin [this message]
2018-11-26 19:11 ` David Ahern
2018-11-27 0:41 ` Alexis Bauvin
2018-11-27 0:46 ` David Ahern
2018-11-27 0:57 ` Alexis Bauvin
2018-11-22 1:07 ` [RFC v4 4/5] netdev: add netdev_is_upper_master Alexis Bauvin
2018-11-22 17:14 ` David Ahern
2018-11-22 18:10 ` Alexis Bauvin
2018-11-22 1:07 ` [RFC v4 5/5] vxlan: handle underlay VRF changes Alexis Bauvin
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=23FB5447-CE8C-4EB4-B3FC-4B5BBCEE03AF@scaleway.com \
--to=abauvin@scaleway.com \
--cc=akherbouche@scaleway.com \
--cc=dsa@cumulusnetworks.com \
--cc=netdev@vger.kernel.org \
--cc=roopa@cumulusnetworks.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).