Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp775046pxa; Wed, 5 Aug 2020 12:26:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTs+LDeBhLWZwmlRUlf6krT/K4XloMgeWXt6TD6kazZDA2W2w0IaZUHMm8Zcj2TmhQBV/T X-Received: by 2002:a05:6402:17bb:: with SMTP id j27mr723247edy.291.1596655591341; Wed, 05 Aug 2020 12:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596655591; cv=none; d=google.com; s=arc-20160816; b=eyaZnWXlyGUF4TJDm4I00JvPjEiQUBp9TuqISVoh9hsVR592KLQmccftQ61PtLF3S9 RIcV0CJXHU9BE5J4pbZrGh9jwJCxQZbV/9CeGUjL8wwsfVaZvUpdHFFvk1n2xZT0OkSD U9H0rVQhG2lKTMX8do08uy2RnlcE0/8mUn9dG+I93Gm8zjsDF3bTNJy/XM8oObYn3y7N SgpCEtcNOcuG+uNxfrSLJ4nzduhFOa43pAa/Jj7fp8C6GcphOZP1/89PtssIxY+EWHKA KcQhcTOB2F8ugyz9a8/roGq4LZXWT0cIfPIepwPZhB+x97waU9NXM7JGTqFT8GVukPRe ARew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=m3ASJYyEUExn5Ws4Pg50T8Kvg/Q0OSXLowmCV6J1E4c=; b=snqEoBmYlwI5Y4AS8xCdu9OPZfW5Zmm5inzTVzOVrDAudf0wYn7rCfl9y/HHHZ+eX7 laInHWHrC2soubcwBX/fFNgRKlv5JSktzkRzTmj39jr9LM25qG/a0E+xZSQUWzJewKzv gJV74KFLc4NHaPhdP/NtK75KXkegUt/EsAG/vmRLsGrsIIoZk/sydoPRuRrEerMNE1Ix seteCHq/fGcyC9S1RtKatGV5R4sjb6Z+3mx0lBnCuQWpNj4yv6+VS93w3jl6fUcfOYTS sp+TgvZD0M3ezYMsi1wOjXQwzP2CqZsTwhQK38NmeWR+OblnhtoHj16AjVw5S6U9oSjK 0KZA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca27si1920555edb.481.2020.08.05.12.26.05; Wed, 05 Aug 2020 12:26:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728371AbgHETZ7 (ORCPT + 99 others); Wed, 5 Aug 2020 15:25:59 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:43894 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728624AbgHERO5 (ORCPT ); Wed, 5 Aug 2020 13:14:57 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1k3JFE-008NAi-1O; Wed, 05 Aug 2020 15:14:12 +0200 Date: Wed, 5 Aug 2020 15:14:12 +0200 From: Andrew Lunn To: Ilia Lin Cc: David Miller , ilial@codeaurora.org, kuba@kernel.org, jiri@mellanox.com, edumazet@google.com, ap420073@gmail.com, xiyou.wangcong@gmail.com, maximmi@mellanox.com, netdev@vger.kernel.org, open list Subject: Re: [PATCH] net: dev: Add API to check net_dev readiness Message-ID: <20200805131412.GA1960434@lunn.ch> References: <1595792274-28580-1-git-send-email-ilial@codeaurora.org> <20200726194528.GC1661457@lunn.ch> <20200727.103233.2024296985848607297.davem@davemloft.net> <20200804192435.GG1919070@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Well, until the user of this new API is ready, we will not accept the > > patch. > OK, but once we submit the change in the driver, is it good to go? No. You really do need to explain why it is needed, and why it is safe. > > You also need to explain "For HW performance reasons". Why is this > > driver special that it can do things which no over driver does? > There are very strict KPI requirements. E.g. automotive rear mirror > must be online 3 sec since boot. Which does not explain why this driver is special. What you really should be thinking about is having the required drivers for this use case built in, and the rest as modules. Get your time critical parts running, and then load the rest of the driver moduless and kick off additional user space in a second phase. You are breaking all sorts of assumptions by loading network drivers before the stack is ready. You need to expect all sorts of nasty bugs. If this was just in your vendor kernel, we would not care too much, it is your problem to solve. But by doing this in mainline, you are setting a precedent for others to do it as well. And then we really do need to care about the broken assumptions. I doubt we are ready to allow this. Andrew