[ovs-dev] [PATCH] vswitchd: Always cleanup userspace datapath.

Ilya Maximets i.maximets at samsung.com
Tue Jun 25 10:07:53 UTC 2019


On 25.06.2019 0:15, Flavio Leitner wrote:
> On Mon, Jun 24, 2019 at 06:28:37PM +0300, Ilya Maximets wrote:
>> 'netdev' datapath is implemented within ovs-vswitchd process and can
>> not exist without it, so it should be gracefully terminated with a
>> full cleanup of resources upon ovs-vswitchd exit.
>>
>> This change forces dpif cleanup for 'netdev' datapath regardless of
>> passing '--cleanup' to 'ovs-appctl exit'. Such solution allowes to
>> not pass this additional option everytime for userspace datapath
>> installations and also allowes to not terminate system datapath in
>> setups where both datapaths runs at the same time.
>>
>> This fixes OVS disappearing from the DPDK point of view (keeping HW
>> NICs improperly configured, sudden closing of vhost-user connections)
>> and will help with linux devices clearing with upcoming AF_XDP
>> netdev support.
> 
> Does this mean that OVS bridges or internal ports will be deleted
> from the system regardless of --cleanup parameter?

Yes. This will remove all ports and completely destroy userspace datapath.

I guess, you're warring about user ip/route settings that could be
manually applied to internal ports and not stored in network-scripts
or network manager.
I think, that it's not very important case. However, the main goal
of this patch is to properly destroy non-internal ports and it could
be achieved without loosing user configurations. I'll post v2 with
this change.

BTW, it's system dependent if ip/route information preserved on tap
device detaching. I have a few systems, where 'ovs-appctl exit'
leads to DOWN state for preserved internal ports and consequently
loosing their IP addresses. On a few other systems this doesn't happen.

Best regards, Ilya Maximets.


More information about the dev mailing list