Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3073335rwl; Thu, 13 Apr 2023 15:31:15 -0700 (PDT) X-Google-Smtp-Source: AKy350b9Gez0wnkwfzhiqv4WO5uRHOROcoK+SzafliBHd1rXz43A84/0hRxhM5DArWzW6P9GfQ0g X-Received: by 2002:a17:902:c949:b0:1a6:87d8:b8fd with SMTP id i9-20020a170902c94900b001a687d8b8fdmr638215pla.5.1681425074928; Thu, 13 Apr 2023 15:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681425074; cv=none; d=google.com; s=arc-20160816; b=htpppoEh0KM+HSB6zgxe1Ihm4oVWZ/uSIEouRb9SiyT7Rm27cA5gyGvQsw2zOqcwzc VzB4MasVmqCMXDSicXHY4Rgxio2HBriLMyp+vlmABW7VwymcVynEJw6lcKqEgcE2B10b tjKjWUy1lFkQcml6Ot8I7cEFQCvcnGDi07tzch/1skmHdiT2CUfA4ORJxfkoL8gINZI9 kO1kOin+7VomtpZ56kHNKxmmwpS5h00Oj95asygvwMXT3Lg7DYb0d4/gd+m9stAVvypG n2LWqu8hHtHMLU6JYtRx7yTszJsW0n85OWUuxvxccxM9xYwAkjVS4aa2XHReM+8kBAl6 01hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=2DXFP3dB1bKLbWwK18eQnwRV9pZt3DISx+mq7u3Xyg4=; b=gSWR8MTIMMKeg2TBz1moPBnhQ3ybnILJra2LvfFOKDEKQvuHObe47nVyXA0jDf3BkT 6TMHxCmXl+s2Bg1tr5YI5t+rm+NingOBUH0NX70m74GrCRgtcCtmgzG8zpnCUOojwWbY mgK2CWmddLT0PYbUxsGRHpkkJwRDAqVLbQQBOBFENWX3XQMIb5a8IdP2AEUJh5PcV4Tj Aigf5hFvc34wh4GtTuQ0KL8/nNiHz+ppd2CM/gkrBtHcIEHyQzSmQ18uqQovR2HpZtpF S0DfdlzwC5xLuALGwQbzaRDfntlNlwcS2S+LfyIysNRTiBtAIss9lbTCq0g96NM/K88s P0Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q1lTe/rJ"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf1-20020a17090b1d8100b002465a26ba49si2954507pjb.149.2023.04.13.15.31.03; Thu, 13 Apr 2023 15:31: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=@redhat.com header.s=mimecast20190719 header.b="Q1lTe/rJ"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjDMW3y (ORCPT + 99 others); Thu, 13 Apr 2023 18:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjDMW3x (ORCPT ); Thu, 13 Apr 2023 18:29:53 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6096A5E3 for ; Thu, 13 Apr 2023 15:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681424944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2DXFP3dB1bKLbWwK18eQnwRV9pZt3DISx+mq7u3Xyg4=; b=Q1lTe/rJFJn09Gbp34WizuUPpx2RD38hw4hv951fynPdjmznpFtY1Qdj+oamX5UGNLZFn9 tNOzE8XGqDr4l+JCnTU7OjOeead0lWCL8W9jKdMUyjMIl37kKkSymxVsThW/MH/WGiAh4Y lUeeA5LqjCszqMgh+pwjwTqzDV9iGrk= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-224-cIQJnnNvNE60J42JQhinpw-1; Thu, 13 Apr 2023 18:29:03 -0400 X-MC-Unique: cIQJnnNvNE60J42JQhinpw-1 Received: by mail-ed1-f72.google.com with SMTP id n6-20020a5099c6000000b00502c2f26133so18597118edb.12 for ; Thu, 13 Apr 2023 15:29:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681424942; x=1684016942; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2DXFP3dB1bKLbWwK18eQnwRV9pZt3DISx+mq7u3Xyg4=; b=SsA/9crDG3dg67xjyIRH3UPERp7ebRV0/DR87s+W8x1VbEGU2+NXTKygNwYkK0DpJb 4yKNeJpBDB/4M2KhKg/qGdWD5O6qYvombWU1De2JOnHY9TJLTuCoGzubF1dnSHY7VQF2 9tMo+SrkiciN+do4BVPUCUOAUeMD2s+OWyMpP2Eqo3xgLNcsHhCV6T6D9c5Dr9d0+vGA /GHUkjYzUZKjHovraR31Ktd9LqVVkuP4Slpz+Qyshr5UqgwtQLdTGsp2vAEIrQDDsH3G rkdabr9hvZ4W0EnmQTcUy3wRbyYcfEelBHziAlV8g2QAJcb3t0/G4IqAMRs2kxgLl1BR 6EIw== X-Gm-Message-State: AAQBX9fVuaFerwlq3UXAvs/H7hxON3elK/PmxeQ9v1bBozTY5E71seFI lDkaEIq9ftwLc1zMBcwmbz29B5vRplD90AVx8sbLrmm5wWieXA9aD59utWsg8dpANJXWBQOpK7a R7vAUAK5+4wnk4QQoXhFc8zPpv7sCBNHrIXo= X-Received: by 2002:a17:906:80cd:b0:94e:d5d7:7bfb with SMTP id a13-20020a17090680cd00b0094ed5d77bfbmr922174ejx.40.1681424941465; Thu, 13 Apr 2023 15:29:01 -0700 (PDT) X-Received: by 2002:a17:906:80cd:b0:94e:d5d7:7bfb with SMTP id a13-20020a17090680cd00b0094ed5d77bfbmr922151ejx.40.1681424940573; Thu, 13 Apr 2023 15:29:00 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id de34-20020a1709069be200b0094e8b90bbccsm1540519ejc.221.2023.04.13.15.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 15:29:00 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 78700AA7C0F; Fri, 14 Apr 2023 00:28:59 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Kal Cutter Conley Cc: Maciej Fijalkowski , =?utf-8?B?QmrDtnJu?= =?utf-8?B?IFTDtnBlbA==?= , Magnus Karlsson , Jonathan Lemon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next v3 1/3] xsk: Support UMEM chunk_size > PAGE_SIZE In-Reply-To: References: <20230406130205.49996-1-kal.conley@dectris.com> <20230406130205.49996-2-kal.conley@dectris.com> <87sfdckgaa.fsf@toke.dk> <875ya12phx.fsf@toke.dk> <87ile011kz.fsf@toke.dk> <87o7nrzeww.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 14 Apr 2023 00:28:59 +0200 Message-ID: <87edonzaac.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Kal Cutter Conley writes: >> "More annoying" is not a great argument, though. You're basically saying >> "please complicate your code so I don't have to complicate mine". And >> since kernel API is essentially frozen forever, adding more of them >> carries a pretty high cost, which is why kernel developers tend not to >> be easily swayed by convenience arguments (if all you want is a more >> convenient API, just build one on top of the kernel primitives and wrap >> it into a library). > > I was trying to make a fair comparison from the user's perspective > between having to allocate huge pages and deal with discontiguous > buffers. That was all. > > I think the "your code" distinction is a bit harsh. The kernel is a > community project. Why isn't it "our" code? I am trying to add a > feature that I think is generally useful to people. The kernel only > exists to serve its users. Oh, I'm sorry if that came across as harsh, that was not my intention! I was certainly not trying to make a "you vs us" distinction; I was just trying to explain why making changes on the kernel side carries a higher cost than an equivalent (or even slightly more complex) change on the userspace side, because of the UAPI consideration. > I believe I am doing more good than harm sending these patches. I don't think so! You've certainly sparked a discussion, that is good :) -Toke