Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1798537pxy; Mon, 2 Aug 2021 10:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+Vt/gzGjeyanJFrQ1ubA/7qgKrfxGm5E6qyHRUF8T7k6D1rp/fRU2InfIiQiGBL9NHJsl X-Received: by 2002:a92:c912:: with SMTP id t18mr2323084ilp.152.1627925257661; Mon, 02 Aug 2021 10:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627925257; cv=none; d=google.com; s=arc-20160816; b=MihZzjqR5VjqY76+0yUCAFf1kt2B/F2QV/S8+Vc6mH7JEbteI8RDs2D/vtXB0pc3bB XBzwh4OOa/3FpiwtcjmSzCxkORldYjLz9FknPUgUpEsyD4Mset+5WZ9aI+RmiixDx9IU St4ibvELNdtvjfSNDzlmGdG24Oiy5TAt27yG49FY9YseII6aTVmzVbr/KFkEM1KjChhD bpat6y+HnV+HXiKkf8s0j6UjnpAd58NtiIm1JpDPOz78NmKK84mLQGG3xO0YJji/2I2A 6Bmlt7fAgk8BVEaxhPyOu4hN7JGF1NpaSrMPYWTgxd2QgDzKR6BXwI6cfGPV34giVkcH ZkbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5uz8gEPJQaxxx8O2XIXYLfxno+gC9ZawoN7RIruRC+Y=; b=Wiee9ypWuXjVRA9PDWL9LI1JjmV/u6drXphg8DP1OvO4m/kmnRIHoR4Tcd2yHR4qid o1P5NFBqJmsIXFX5jF2bPfTITTRJcuq9DVKXXz/IRY0awoYTRVqvh/HoS/DXNAE42iOz xeWAvI6HiSiyDcTm6FbZDnZJJIWXWjHImivQr4dOX12PdxIIloTp1qKzG4ViCm2k7jy4 4XlwwbPGcr++oZxub1kRx7dkfa0T+cATVnn4zYE35CsmMuAMZdSrrs7iAagnERtea5kp f34wus8ZkmzV8Q7AQc2uqTfamcyVi9DCOA4m9ZbwhGfahI9AvhhPt1ylWrCuFKji65DX 0W7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EfAp0hQO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si12683055ilk.97.2021.08.02.10.27.25; Mon, 02 Aug 2021 10:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EfAp0hQO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbhHBRZw (ORCPT + 99 others); Mon, 2 Aug 2021 13:25:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:36860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbhHBRZv (ORCPT ); Mon, 2 Aug 2021 13:25:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D039B60FC2; Mon, 2 Aug 2021 17:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627925142; bh=rDHGnR1MA66SVG6wpSp6UeehmSx/GDU1fTIdKvtZj1A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EfAp0hQOU+zzlJoe9/HNH8REFWUhqX6qk1quQKcucyIRW+vbMqXmRmJU+JOUbRtFk i0Io9mm5WVVZ6DiBvSPOmlG9jsEsvUT1GMctcQZrd+b6/mfAls9mtfnILBscjspd45 g7jFIs7ZJS+pskXNL5wzCFsGAvWtl46WTX4aUqAFQjuQZUb+ztecTSxQXOcm7M3d4g KqjZLmcGae5e4eaMdJaGltKPjngd7ZHIy8MMmAHxzhpynvlS0M8ILItaJjuRT1yrCJ U77HcUz7HD08AABqUFNMI1CcdLGF/pzs2/KmI4eGHyWMGB4QJTpozzdpbMI7ZlNeBy mFK0wgz71HFLg== Received: by pali.im (Postfix) id ADB4EB98; Mon, 2 Aug 2021 19:25:39 +0200 (CEST) Date: Mon, 2 Aug 2021 19:25:39 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andrew Lunn Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: How to find out name or id of newly created interface Message-ID: <20210802172539.2v3qnkjmp7l2qtxl@pali> References: <20210731203054.72mw3rbgcjuqbf4j@pali> <20210801143840.j6bfvt3zsfb2x7q5@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 02 August 2021 16:21:05 Andrew Lunn wrote: > > Hello! This has additional issue that I have to choose some free ifindex > > number and it introduce another race condition that other userspace > > process may choose same ifindex number. So create request in this case > > fails if other userspace process is faster... So it has same race > > condition as specifying interface name. > > O.K. if you don't want to deal with retries, you are going to have to > modify the return value. The nice thing is, its netlink. So you can > add additional attributes, and not break backwards compatibility. User > space should ignore all attributes it does not expect. Guillaume already proposed to implement NLM_F_ECHO... > But i suspect the architecture of the code is not going to make it > easy. > > Andrew