Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2718241pxj; Mon, 14 Jun 2021 05:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtzhpOCblEdMjKJ08gaRLAMxAhjXcmI/7iDKWlYzCDpBg7JzV1dRBQfK4/iou8UeAqAfHY X-Received: by 2002:a05:6402:40c3:: with SMTP id z3mr16613384edb.187.1623674565922; Mon, 14 Jun 2021 05:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623674565; cv=none; d=google.com; s=arc-20160816; b=henn8gdBYO6/Wfp8Jei3mCJP4Y+fNjzc5y1GgPPSxNxRh2aeawGoZXnhQVZuYckkic 4uLsw+xnyZTcqbnXpmGDMk4NjjwMwLGUU4YReoiQog+jN5qU1jqieS5EMY+XTt/iqgKZ OY0tZFtvqtq8uv3Pl09VxHznFyb1Cuxwp4cOmYh3R1mNmA/bnUhTOd4GUNrG55dJTZpp 4VvvK1rWJmS0s3Oeijg3nQ9VbQsVzf7I998Yq0WOHKCdj6yOXoq+usNmOVgJNIFKnhVI SE/LqPxgblGoSMVWiMo6Vp4saHc1T0yMNW19Z7h4IsWgZq+tw0abCDrxrS9Ru2wAl/TE X3OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=XBYOvFAFTda/NVTkMZ0PeZiEtTLP6Wn9QeCT3FHWm6s=; b=qUwWZyiaJ0ctBtMYZgETxc4frVmCT9Mc+RNBwq7wbrF91YB4F063PEFkFyFujytcOK J350T+ptLLXAWhOn/CMOeAr4Ohxv6O0OYhl69+nXH3s6Y8zaakF/dduiXnoTQB1ntGfl o5t2uR+lxyNzN3jMflGMznJQFrxE8QQ5zt+Xxyiqqf2Fk/Rb0BQ8K9tXFLcwNFnzcUx0 RN1qbtEAsfEds30ChOJOMfeNrhYkjq2M74xkx9egfNbXlH852bKp7pJ0iB5nc6xbU9SK 64P9PDmgxCorzsqt/wZayxKiBBlzuHlDxZDgan3oP2IRi3WCFg78z/GbHaxenhP7A865 bcdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=k4e1oIMC; dkim=pass header.i=@suse.com header.s=susede1 header.b=bI7gcEeA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si12689248ejp.119.2021.06.14.05.42.21; Mon, 14 Jun 2021 05:42:45 -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=@suse.com header.s=susede1 header.b=k4e1oIMC; dkim=pass header.i=@suse.com header.s=susede1 header.b=bI7gcEeA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233418AbhFNMmo (ORCPT + 99 others); Mon, 14 Jun 2021 08:42:44 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:37366 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232791AbhFNMmn (ORCPT ); Mon, 14 Jun 2021 08:42:43 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 027192197A; Mon, 14 Jun 2021 12:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1623674439; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XBYOvFAFTda/NVTkMZ0PeZiEtTLP6Wn9QeCT3FHWm6s=; b=k4e1oIMCQH05405X0OEqHcA34zn7X5BMMFN6uRoeakLI/bSmkKyqmv2xUk3whG0BRMMgJg KT+Xzggu277Ntm78EwDPzStut9sDhEVfNyFIkdTYOcnlMb4/hFO/7Y5WB/ckYNywz0I4oW KrrvC1jedquufkilCZBjfGvlV+1Rkfc= Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id A24C5118DD; Mon, 14 Jun 2021 12:40:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1623674438; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XBYOvFAFTda/NVTkMZ0PeZiEtTLP6Wn9QeCT3FHWm6s=; b=bI7gcEeAsDNvz1ea4QsseLE+hrztdiYgYiiCLWdVt99cR415yNbJdVuxHmu1vdM/EUC6Kn iv8VQg8QZ0OV09xWfkqEpEK1VH5uZfHyFnRra/KOGfUeBiXHL3PWqTVtZAQGyGC7e5O+Wi GcX7U7JRzwMz0WCwl9QIDzFCf5kStEA= Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id iLUpJUZOx2DuPAAALh3uQQ (envelope-from ); Mon, 14 Jun 2021 12:40:38 +0000 Message-ID: <3567e925f1750babe9508377678c55a2e4610af5.camel@suse.com> Subject: Re: [PATCH] net: usbnet: allow overriding of default USB interface naming From: Oliver Neukum To: Jonathan Davies , Andrew Lunn Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 14 Jun 2021 14:40:37 +0200 In-Reply-To: References: <20210611152339.182710-1-jonathan.davies@nutanix.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 14.06.2021, 10:32 +0100 schrieb Jonathan Davies: > On 11/06/2021 18:16, Andrew Lunn wrote: > > On Fri, Jun 11, 2021 at 03:23:39PM +0000, Jonathan Davies wrote: Hi, > > > Hence it is useful to be able to override the default name. A new > > > usbnet > > > module parameter allows this to be configured. 1. This issue exists with all hotpluggable interfaces 2. It exists for all USB devices so it does not belong in usbnet, leaving out drivers like kaweth. > > > > > Module parameter are not liked in the network stack. > > Thanks, I wasn't aware. Please help me understand: is that in an > effort > to avoid configurability altogether, or because there's some > preferred > mechanism for performing configuration? Configurability belongs into user space if possible. > > > It actually seems like a udev problem, and you need to solve it > > there. It is also not specific to USB. Any sort of interface can > > pop > > up at an time, especially with parallel probing of busses. > > Yes, this is also applicable to the naming done for all ethernet > devices. But I've seen the problem multiple times for USB NICs, which > is > why I proposed a fix here first. Because USb devices are common. Your observations are determined by ubiquity, not intrinsic factors. > > So you need > > udev to detect there has been a race condition and try again with > > the > > rename. > Yes, now, it may be that we do not export the information udev would need to or you want new kinds of rules. But I see no evidence of that. Regards Oliver