[Devel] [PATCH RH7 0/3] net: openvswitch: add capability to specify ifindex of new links

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Fri Aug 14 20:01:53 MSK 2020


CRIU is preserving ifindexes of net devices after restoration, but current Open
vSwitch API are not capable to do that. So we need to modify it, because
- Restoring net devices with random ifindex will lead to some excessive
work to restore master relationship.
- OVS device taking another link ifindex will likely cause some problems and
may snowball previous point.
- Although OVS daemon is not supported yet, it is holding some tables which
have ifindex.

Also I found a bug within OVS module - if for some reason netdevice_register
fails, OVS gracefully kills kernel. Luckily there are some patches to
fix that.

Andrey Zhadchenko (1):
  net: openvswitch: add possibility to specify ifindex of new links

Hillf Danton (1):
  net: openvswitch: free vport unless register_netdevice() succeeds

Taehee Yoo (1):
  net: openvswitch: do not free vport if register_netdevice() is failed.

 net/openvswitch/datapath.c           | 16 ++++++++++++++--
 net/openvswitch/vport-internal_dev.c | 14 +++++++++-----
 net/openvswitch/vport.h              |  2 ++
 3 files changed, 25 insertions(+), 7 deletions(-)

-- 
1.8.3.1



More information about the Devel mailing list