Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2539681rwl; Thu, 13 Apr 2023 07:47:08 -0700 (PDT) X-Google-Smtp-Source: AKy350a8K/qX5Rn8YZsQJHaCcyVX/QyOLipDci/p3xbdL5K6KNjECi7xLf0vmY4046Xf1IglshQI X-Received: by 2002:a05:6a20:8e09:b0:ec:87ce:1146 with SMTP id y9-20020a056a208e0900b000ec87ce1146mr1667335pzj.37.1681397228387; Thu, 13 Apr 2023 07:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681397228; cv=none; d=google.com; s=arc-20160816; b=mrEVg9Lk4DChFvoBBuPJ+uTx9rH3kEcdn+e79rNJO9vkLYfsEvA8X6mAvvEhfb8D6y L9fRim6I1fVN2gxg+azm+ZZxsHhsjX1JFUq6CZdoht/CpTomgG1F2831BC24nSTMbFUl 2olAyPyyoiWTFYr3UBDV302Jxv3Gv2L6k5Kwih/fE5ckJTCwZag7VfjCiqCn20dG3//7 IYghuMWvyq9TiZxq9+hsp4ccCTVvbxOoqMV1U6q2Y+fa3kVf7tIPB5FYRYAMbwCAqxRA PQb5lPagMC7imCrJM5cYaY7eM1hRyRbkv2CMy4q6Plj9Ksrb9j11mYuJJobS1ervWz9p h9Ag== 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=sX0ILxKB40aVIHVtanZ71F6ffVCczqDh1NoDUTg9TcU=; b=D69Z/IfQI8ZNLyfQh09sHih0I7bRRlIMoXght48206EE78cF7maRgNnEyWHqSZG5IX LSdH+mRx58dhW1KCJniYZdHUdKKRDqhzDC+Abm6lJsVt9Kz3suvROtaJ85q6zsLMuIxz eDOJakVaW25m/G1p4Sup+xmy/lhCnFrT9m/jURz3Tv7i2qDDaR37O2nxA7gBduj32b1+ sMXS+7r08eI5n2Jinjiz7Yy9LKBDTqcFnjyCXxv4yH1KO+LJ68CHEYvXJdvoR5LcMuwQ m3VKoGzVA2hqluNOGH1QfQ7THFOx9d6L/kEuTOz4FdXoZLnTg9t8DuhGUjGS5YsTCDBG 2+Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oOI3GROG; 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 y2-20020aa793c2000000b00638799be1fasi1931475pff.99.2023.04.13.07.46.56; Thu, 13 Apr 2023 07:47:08 -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=oOI3GROG; 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 S229611AbjDMOqC (ORCPT + 99 others); Thu, 13 Apr 2023 10:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjDMOqB (ORCPT ); Thu, 13 Apr 2023 10:46:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC80DB765; Thu, 13 Apr 2023 07:45:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 99C7C62EA3; Thu, 13 Apr 2023 14:45:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B4F5C433D2; Thu, 13 Apr 2023 14:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681397116; bh=sX0ILxKB40aVIHVtanZ71F6ffVCczqDh1NoDUTg9TcU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oOI3GROGSv+NZ9aIpTgQ5QONb+xK3/SN9ZkKPY55I8keVqio62umJtoqKXdlCzHIm MumhHzUphie1wGydfLT4ePGgiprxHfJxMZYuaOGsANhT58IjSP4ksMWSkyTuGZMhL2 XYjrZ7vF1h6uXjIkJdkiGRUbSgRmkwyglwKf0Xs4FjLOTrO8vTm5et4Suyq9AUAf5t MA4Crm9Sh78uJ5Y8xx7sVxXFk4wg+MQ20l8/0J3bAz8DcpaZ06XXUnYHN0T8UbZ2Wx HRXqFysIJ2Fkl9Zk7V6XCFF+giS9tmMvLKS9ilttzgC11ddB3zJKu43urhBJNJ2tva jewCP/Q3+bZPg== Date: Thu, 13 Apr 2023 07:45:14 -0700 From: Jakub Kicinski To: Willem de Bruijn Cc: Breno Leitao , Jens Axboe , David Ahern , Willem de Bruijn , io-uring@vger.kernel.org, netdev@vger.kernel.org, asml.silence@gmail.com, leit@fb.com, edumazet@google.com, pabeni@redhat.com, davem@davemloft.net, dccp@vger.kernel.org, mptcp@lists.linux.dev, linux-kernel@vger.kernel.org, matthieu.baerts@tessares.net, marcelo.leitner@gmail.com Subject: Re: [PATCH 0/5] add initial io_uring_cmd support for sockets Message-ID: <20230413074514.79cc036e@kernel.org> In-Reply-To: <6438109fe8733_13361929472@willemb.c.googlers.com.notmuch> References: <75e3c434-eb8b-66e5-5768-ca0f906979a1@kernel.org> <67831406-8d2f-feff-f56b-d0f002a95d96@kernel.dk> <643573df81e20_11117c2942@willemb.c.googlers.com.notmuch> <036c80e5-4844-5c84-304c-7e553fe17a9b@kernel.dk> <64357608c396d_113ebd294ba@willemb.c.googlers.com.notmuch> <19c69021-dce3-1a4a-00eb-920d1f404cfc@kernel.dk> <64357bb97fb19_114b22294c4@willemb.c.googlers.com.notmuch> <20cb4641-c765-e5ef-41cb-252be7721ce5@kernel.dk> <6436c01979c9b_163b6294b4@willemb.c.googlers.com.notmuch> <6438109fe8733_13361929472@willemb.c.googlers.com.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, 13 Apr 2023 10:24:31 -0400 Willem de Bruijn wrote: > Probably also relevant is whether/how the approach can be extended > to [gs]etsockopt, as that was another example given, with the same > challenge. I had the same thought, given BPF filtering/integration with *etsockopt is repeatedly giving us grief. The only lesson from that I can think of is that we should perhaps suffer thru the one-by-one conversions for a while. Pulling the cases we inspected out into common code, rather than hope we can cover everything in one fell swoop.