Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3284972lfo; Mon, 23 May 2022 00:42:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWvB0//3Qmy0JXLMg/SzQgw6yiHcOPgljk+MLHSn32h4OcDRAMlx2rBT/yID5PuyvrT44l X-Received: by 2002:a05:6a00:1351:b0:518:9fa0:fbe3 with SMTP id k17-20020a056a00135100b005189fa0fbe3mr4097900pfu.45.1653291731468; Mon, 23 May 2022 00:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653291731; cv=none; d=google.com; s=arc-20160816; b=NLDChvqSCH9i8dP2ePK1q8N2NPo5w6UgDlT11jS54pmVDvkSvNHo5nMF+FBn0dOvRi DyFYetCllD1zZOhDTUpl/DviytIfOdSuDsjFx5z2CwTiWWgXUN59WZOoiuNq6ZO/oKzU RL7/l9YH8HzYJOpkwIw2xfK/1MBlghZgoWALIg1m587eZAXZkgBV+olkUmurv2ELzQwv dE5SGTMUCM45fDR227ns6XSPXGh5obTezdApE7RcSWc4KiL8HlZiLW/W0JVe7xnLv3x1 yXI2Ymxp2eLRBZmUpjj/3OsjaLBjDct0XkFKY7rpIOEjaNnqDvze8jLxh+KW3hprEHF/ md3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0m5otY5wLnd8qF1d6h93ahrmPx+pF7uBjOVxsQJ2omc=; b=H3Pmu4ZsOvUCbBKXpf+mseTL96ryp7LEyGzPXYqSjP37DnC6BFdlqBTjovhaEfdUfU M2IykyRX7hAGRucBv5RQ2VeUXc/GS2zo6Bw0RsCd3lSbnJT8CzZLTjXJaJxbNJOrc1EU PcSQB1R0Rm+if6slDlYvNF9GJb69bj4FMlHmKQLs7it3HyrG67b7ax8ftbD5hXT/RE44 BKwyXxN8ps6a0GzqMGHLRZXkgrMms22buUiPGc9IRZSoA3bveIcSpOU+f1aWx+W+OOCa Mn60Ocj2bpe1il4lNFuf5OIvZxobwkLvz+O4nIwxIU1bnyP57YSWR+/53zmUdT5XxGyn 3PEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6LlEkeuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 193-20020a6305ca000000b003c5e4be54bbsi9406513pgf.240.2022.05.23.00.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:42:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=6LlEkeuG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E9D2F52E50; Sun, 22 May 2022 23:49:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344868AbiEUSz6 (ORCPT + 99 others); Sat, 21 May 2022 14:55:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239958AbiEUSzz (ORCPT ); Sat, 21 May 2022 14:55:55 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A65312746; Sat, 21 May 2022 11:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=0m5otY5wLnd8qF1d6h93ahrmPx+pF7uBjOVxsQJ2omc=; b=6LlEkeuGubfneYezKRZlW95VW1 YXGM4aRO9RzuUhjToGV1N3ojHj9i3D+YinRTPRLRFgQTid+DGtGShtrSw/B2sUlLtueAGN0ocaXu3 BHyRs4EDNjr4wYcmsMAD3Pc0mBZQ79KZzhBGPrKINF5gOhVROADXaUWDTHQnOYZo3GfE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nsUGT-003nGs-Sy; Sat, 21 May 2022 20:55:49 +0200 Date: Sat, 21 May 2022 20:55:49 +0200 From: Andrew Lunn To: Kent Overstreet Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, netdev@vger.kernel.org, mcgrof@kernel.org, tytso@mit.edu Subject: Re: RFC: Ioctl v2 Message-ID: References: <20220520161652.rmhqlvwvfrvskg4w@moria.home.lan> <20220521164546.h7huckdwvguvmmyy@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220521164546.h7huckdwvguvmmyy@moria.home.lan> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 21, 2022 at 12:45:46PM -0400, Kent Overstreet wrote: > On Fri, May 20, 2022 at 10:31:02PM +0200, Andrew Lunn wrote: > > > I want to circulate this and get some comments and feedback, and if > > > no one raises any serious objections - I'd love to get collaborators > > > to work on this with me. Flame away! > > > > Hi Kent > > > > I doubt you will get much interest from netdev. netdev already > > considers ioctl as legacy, and mostly uses netlink and a message > > passing structure, which is easy to extend in a backwards compatible > > manor. > > The more I look at netlink the more I wonder what on earth it's targeted at or > was trying to solve. It must exist for a reason, but I've written a few ioctls > myself and I can't fathom a situation where I'd actually want any of the stuff > netlink provides. > > Why bother with getting a special socket type? Why asynchronous messages with > all the marshalling/unmarshalling that entails? Hi Kent It has its uses, but my main point was, it is unlikely netdev will buy into anything else. > >From what I've seen all we really want is driver private syscalls netdev is actually very opposed to private syscalls. Given the chance, each driver will define its own vendor specific APIs, there will be zero interoperability, you need vendor tools, the documentation will be missing etc. So netdev tries very hard to have well defined APIs which are vendor neutral to cover anything a driver, or the network stack, wants to do. Andrew