[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220817131841.frtdyro52bsus2h5@wittgenstein>
Date: Wed, 17 Aug 2022 15:18:41 +0200
From: Christian Brauner <brauner@...nel.org>
To: Andrey Zhadchenko <andrey.zhadchenko@...tuozzo.com>
Cc: netdev@...r.kernel.org, dev@...nvswitch.org, pshelar@....org,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, ptikhomirov@...tuozzo.com,
alexander.mikhalitsyn@...tuozzo.com, avagin@...gle.com
Subject: Re: [PATCH net-next 1/1] openvswitch: allow specifying ifindex of
new interfaces
On Wed, Aug 17, 2022 at 03:49:09PM +0300, Andrey Zhadchenko wrote:
> CRIU is preserving ifindexes of net devices after restoration. However,
> current Open vSwitch API does not allow to target ifindex, so we cannot
> correctly restore OVS configuration.
>
> Use ovs_header->dp_ifindex during OVS_DP_CMD_NEW as desired ifindex.
> Use OVS_VPORT_ATTR_IFINDEX during OVS_VPORT_CMD_NEW to specify new netdev
> ifindex.
>
> Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko@...tuozzo.com>
> ---
I think specifying the index at device creation time is a good idea and
iirc then we do allow this for veth devices already. So I'd be happy to
see this go forwad.
Powered by blists - more mailing lists