[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220822080641.k4c2sxxhd57rbkd4@wittgenstein>
Date: Mon, 22 Aug 2022 10:06: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,
mark.d.gray@...hat.com, i.maximets@....org, aconole@...hat.com
Subject: Re: [PATCH net-next v2 1/3] openvswitch: allow specifying ifindex of
new interfaces
On Fri, Aug 19, 2022 at 06:30:42PM +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>
> ---
Looks good to me,
Acked-by: Christian Brauner (Microsoft) <brauner@...nel.org>
Powered by blists - more mailing lists