Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11301462rwd; Thu, 22 Jun 2023 11:19:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rsmzT4QiCVlsT5QcL3eqjlqdSMwwiANmcZgnHGt1yaWZjwf/tV4rzv2Tb0sT9qEvBcftc X-Received: by 2002:a05:6808:13d2:b0:397:f1b3:f940 with SMTP id d18-20020a05680813d200b00397f1b3f940mr24521917oiw.27.1687457954717; Thu, 22 Jun 2023 11:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687457954; cv=none; d=google.com; s=arc-20160816; b=H1rPF4v+fHZj4uWauSzUneqTlHNlF1ZepZkqB3jqCSM1WT3Ej/Ynezsq28lb/IR9o5 KJUkd2qV2u83aw9khAeBWy+s/hQ8pKFw8dvDA4+zFHpcjqSrzjE/15UuJ75NimZ2FlbI 43jKpGWKWDRDmp+RIgCTHBO3r3L9DjjrndZnuJw+pxxbfKMiBGmBktOSjjSir+sy+vCu 3jNSer0UeB8TqzgwWyTd+4GOTibfEKooH+Vwrpa314/XNdFTQhND2Z2yEL31uRbBYbBc Mopxsf7mFUzV0ysUdKjq4Phe8jy8B9Ok0jh5mrs2aolFxj+hKXk1S7p/MA40DGr5nEBw SaMg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=SGebdXtMInLFfT9DRfxtXHnahdLvzHBbUDy+PUe2aLA=; b=JWYwTU84FVU/dm5sMOp5etf8GOwlOM3ma4L9jGVkEKzKxN4fc/X8TvcHGT5ekKmLpZ jQoXWjmwpWznul3oFuFwoDydcd6nIFu8h3h6MIVsLqEcSpXCwLWLtM2cWMxZfnC1Qda+ bszWVPHz5OWt0qjNxvDBAy7zuDqhtAKuPct/rxq/NaNgnbTxxucN29wV3JTCtxKkyd9b rhgTeDmOuHTWrsp9sXqjFPUvozTHILIXaFTzTsCDKvDJt74U+FrwLEyEWiPWidYjWdVb UnYkwcFKKBRW2WR4iO68OSeolkfB9sP1RbWqolp/o7by0H/ghj43Ogmud6PCJAOhHwGY GEEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c/wGJVyy"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b00543a6ce8c34si7356331pgb.463.2023.06.22.11.19.02; Thu, 22 Jun 2023 11:19:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c/wGJVyy"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231368AbjFVRkK (ORCPT + 99 others); Thu, 22 Jun 2023 13:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231418AbjFVRjy (ORCPT ); Thu, 22 Jun 2023 13:39:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCD31FD2; Thu, 22 Jun 2023 10:39:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C65C618CA; Thu, 22 Jun 2023 17:39:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52726C433C8; Thu, 22 Jun 2023 17:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687455589; bh=6Mcce3nF6YdsClruQbW80qlgIDWGMFESghPF7l7JYTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=c/wGJVyyFBHOwRk677FOXLxKHfOpmo7aYhn8TXoCyysBSD9UN0HRCi/VIEy4fVtc3 d1Gtwc4Tlz0ZMOG6N2t6zeJCnCq0Ac3UfKvnIvE5ZZRksc5XHdNUCO3ys3TEVyYqB9 O5aTb6ejHzcie2Y3dxe6TFO3Tx54mwjqIDfllxxT2yeNQkcittmTYy4ty+rg7d5x/5 gYUetO9mpIHBZhBPcQIevv1XEy0sHwQScl/zfyoUZDduBaQ4FV+wexEVRBjKC+uN3K nVASNPf6jJeZE8DcXCk8LoxzJA9L3gYZjf9cqV9w6ceYkEMCGPZirph5X8Wsb8TCwX wosPPNlFHhh3g== Date: Thu, 22 Jun 2023 10:39:48 -0700 From: Jakub Kicinski To: Breno Leitao 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: <20230622103948.33cbb0dd@kernel.org> In-Reply-To: <2023062228-cloak-wish-ec12@gregkh> References: <20230621232129.3776944-1-leitao@debian.org> <2023062231-tasting-stranger-8882@gregkh> <2023062208-animosity-squabble-c1ba@gregkh> <2023062228-cloak-wish-ec12@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, 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. -- pw-bot: cr