Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11400626rwd; Thu, 22 Jun 2023 12:45:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74HlqbLbEfjKmKt/ZMkuQYwFVyY+dBu2fAlei7JAh8g0RF/u7/pbuR2hI0/CS58tn0kJZQ X-Received: by 2002:a05:6a00:a8a:b0:641:3bf8:6514 with SMTP id b10-20020a056a000a8a00b006413bf86514mr23446958pfl.10.1687463112924; Thu, 22 Jun 2023 12:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687463112; cv=none; d=google.com; s=arc-20160816; b=U+1V17SIOD0PpwiPltQ6+jhqW/O0TG8pZSFJ3Mv3zr6XVltIKsMzcvdnYquDptwbTZ jfqfWmxDy/S4xiXxnTMy9lFKHrTlCG25OtiYHiPesfvt/2rWKrqo4463zEvNDRvfM1hb Lvfmm6Kuk5px0RyDGg6amIzF02RtyMyHctnmWmPLa7MpjRQICqdtRPiIxjl/4Q9uv3AM K4rDYk+5oSbOyJfSRRNopm9CQvzmflAFiMX2k5hscJjmUTQkGotgsvbVoIJ7Yd179jUO H/QwCrLeuXJKcFcXOud/+KinFQ+Te/aJfv9bMePUMBAEgoyqxYSAVSNRN5MclMi00dsa cA5Q== 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; bh=JQKzGLLngarWVhVTw2URKzbQiX5Xh0ThcGjikbK/29A=; b=0IbjblQMaxpfVNdbQThig/BXx/T3TW159Ao5OxDctuBoMF0gjORW3cSeNRl0WBwy1k tjPAnZZ6OdBBIhsQKjBa6j43+XQg9+QBdsjAp+ts3peuLigx7h2jXrDZntZEh9mRgii7 fMK9eI+2ohUGICiV6i3umQsl6goUhnfoLtarjI4ybf8pOTNoB6NUFRcKhjqXw3ydo8fy 5jvBIi9n7jM0GsrUCJilIpb9zN6tSKP5P0cjYWc2uYluV49hZEXbs0uJ4XKx1Bc4egsp qboUlL0xZqoQmG74b7cSbMK+TUM/E3XxhDw0JuNIZm0wI2PqI1TTXb5tjJeDwcQvcFRy Iumg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct24-20020a056a000f9800b00665dfbf3b1esi3890703pfb.270.2023.06.22.12.44.59; Thu, 22 Jun 2023 12:45:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230163AbjFVTBv (ORCPT + 99 others); Thu, 22 Jun 2023 15:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjFVTBt (ORCPT ); Thu, 22 Jun 2023 15:01:49 -0400 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A4659B; Thu, 22 Jun 2023 12:01:48 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-31121494630so8626255f8f.3; Thu, 22 Jun 2023 12:01:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687460506; x=1690052506; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JQKzGLLngarWVhVTw2URKzbQiX5Xh0ThcGjikbK/29A=; b=UDaogkxedFUKrLBbokO3Ju1XWzQsshU4NzizhE111YxjVL/KNgAdifnWs3aZVyEqnh vZLqxNQG2p5Z41RNyZ2k1HYP7KJToFUID1byUceENvRpFn2nmR/Fk/3WzleWGvlOzZBg cbtsILSaBxvPwgt6bsmd3HEx6TR2HX3bnAuRa0OHGTEDRRUKAYhbmcvyN+XtUXdS/smy TqIuucLOcep/obdp00dn2uafwYJ/S4an7+fCBuCNKM4VQh2n7V5rQ5kAexgk9ST+XZnL BsB9yEtdUnp3AvAw+5NPltZEX4Znv66aHgXRugSSkasJa4s8vfAHsOaoVqBv/jNSCYWT wHaw== X-Gm-Message-State: AC+VfDzUGonVeZqp2rk4tW0X5cz5cCvSnqP0udUDlT/eVoGBUMoR85aJ NuctXn7FZLyWZHinSTcAZt0= X-Received: by 2002:a5d:67cd:0:b0:2ef:b052:1296 with SMTP id n13-20020a5d67cd000000b002efb0521296mr17148852wrw.22.1687460506529; Thu, 22 Jun 2023 12:01:46 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-004.fbsv.net. [2a03:2880:31ff:4::face:b00c]) by smtp.gmail.com with ESMTPSA id j11-20020a5d604b000000b003078681a1e8sm7680789wrt.54.2023.06.22.12.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 12:01:46 -0700 (PDT) Date: Thu, 22 Jun 2023 12:01:44 -0700 From: Breno Leitao To: Jakub Kicinski Cc: Greg Kroah-Hartman , Jonathan Corbet , Jens Axboe , Pavel Begunkov , "David S. Miller" , Eric Dumazet , Paolo Abeni , leit@meta.com, Arnd Bergmann , Steve French , Lu Baolu , Jiri Slaby , Stephen Hemminger , Jason Gunthorpe , Simon Ser , "open list:DOCUMENTATION" , open list , "open list:IO_URING" , "open list:NETWORKING [GENERAL]" Subject: Re: [PATCH] io_uring: Add io_uring command support for sockets Message-ID: References: <20230621232129.3776944-1-leitao@debian.org> <2023062231-tasting-stranger-8882@gregkh> <2023062208-animosity-squabble-c1ba@gregkh> <2023062228-cloak-wish-ec12@gregkh> <20230622103948.33cbb0dd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230622103948.33cbb0dd@kernel.org> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,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 Thu, Jun 22, 2023 at 10:39:48AM -0700, Jakub Kicinski wrote: > On Thu, 22 Jun 2023 19:03:04 +0200 Greg Kroah-Hartman wrote: > > > Correct. For now we are just using 0xa0 and 0xa1, and eventually we > > > might need more ioctls numbers. > > > > > > I got these numbers finding a unused block and having some room for > > > expansion, as suggested by Documentation/userspace-api/ioctl/ioctl-number.rst, > > > that says: > > > > > > If you are writing a driver for a new device and need a letter, pick an > > > unused block with enough room for expansion: 32 to 256 ioctl commands. > > > > So is this the first io_uring ioctl? If so, why is this an ioctl and > > not just a "normal" io_uring call? > > +1, the mixing with classic ioctl seems confusing and I'm not sure > if it buys us anything. Sure, let me remove the dependency on ioctl()s then.