Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5182385rwe; Tue, 18 Apr 2023 03:21:37 -0700 (PDT) X-Google-Smtp-Source: AKy350aWbUOMfHBI6KdKn9xPgDDkjLhEgJ0aCJmmeUhmYdC9a0MT0gdOO0JaEtb5odxk18p6n8vP X-Received: by 2002:a05:6a20:729f:b0:f0:df6b:d232 with SMTP id o31-20020a056a20729f00b000f0df6bd232mr595732pzk.40.1681813296831; Tue, 18 Apr 2023 03:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681813296; cv=none; d=google.com; s=arc-20160816; b=qQFz7H66Btd8rUhBNwOaGV2ULfgbsnnul6sL5gdgF/ur3dtI4+26Q+afLN+wspiTmS JqbvtVbmGLTvGZJckZbV4riJzMRa3KV+vxAT16+DZVLLbIvreJO00vqtwOievFdqtgrb cDAxVck261DBe5j4aETRm6On+22sUhtk1RLmG42MXh8P6NeK7CzDPi5/DDhmwU3045QB aB+q7vZmtKLJbGE2XLrsGxAlIKQOT+dVGKYy8OgbYVKXv+L0tL74tIoEdZ25AixTL269 RlcO6U6f89U7P8TX1hHinjadOKeGehNJhcoRjytzfKFaHwowl8pRdTL/yUbTMLTieI2U Iapg== 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=ApoV6tQ/8bWNgsumqAtwyvPE2nYx/deLF6XAnhG6Ezo=; b=bD4nqeBuJBqio4899eubwbLwxuiSb4brEhmppmHF2I6ceVEGgKpK24/Nb8l2T12NQI qMj+vXQ36fxGo6h1y1LC6QaXBUyZUIj/zLPOnpGYhwSnxoPqu764IAHP1jbcmDR88mbi C1bX52QwXZFl84N6uqLLfM4TueHZalRnxT2oOwcsS3Es51otAidejmHzN4GtweS0xKTg FhZaV3EYsKL+Ri9ytWLzSZSpeDEi+tXipEiIfSZOwYa88c7dqCHpkcA9cOrFx4ixtUwX 2wQwSrJ+7Yf9Lvz05irLsngsy6OUQr7xGFd8E6LgDetxnKAdBKNq3ETUQsHIZFlbvq+K SM9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eGjpYs5B; 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 z27-20020a630a5b000000b004fb95c8f645si13394981pgk.392.2023.04.18.03.21.25; Tue, 18 Apr 2023 03:21:36 -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=eGjpYs5B; 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 S230318AbjDRKRz (ORCPT + 99 others); Tue, 18 Apr 2023 06:17:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjDRKRy (ORCPT ); Tue, 18 Apr 2023 06:17:54 -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 04BF73580 for ; Tue, 18 Apr 2023 03:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681813023; 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=ApoV6tQ/8bWNgsumqAtwyvPE2nYx/deLF6XAnhG6Ezo=; b=eGjpYs5BEdq0f1pwZwXU/4jOPD2DhpJxEbTO/LVrrTf4BGQjUbA42SWEmxhQIBdSabOXtJ RBLhjUGU/3eMBg1TBGMSMsARGcuRfGeuQaA1pdarQpmdZct0cwMZYBCdpObAOVYbgmohEV 2y3yZkJQc3Ozanv1Sr6UBOY8NRAE+y8= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-350-FL0eg1iKMa6rfCGslJsLvg-1; Tue, 18 Apr 2023 06:17:01 -0400 X-MC-Unique: FL0eg1iKMa6rfCGslJsLvg-1 Received: by mail-ej1-f72.google.com with SMTP id j9-20020a170906278900b0094807746cebso2391062ejc.6 for ; Tue, 18 Apr 2023 03:17:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681813020; x=1684405020; 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=ApoV6tQ/8bWNgsumqAtwyvPE2nYx/deLF6XAnhG6Ezo=; b=b9ZwmhqbzMbqN9XSO9GaALxb1v51XBgA9HuWDqByXBDAnZzM7OVp0wDDE6dpwpkdsG +9f+VKrkifi84bD6abOFIQQhMUFYd2gCoiY/OpdWG00oHlpCcsrsO0cKI8JDNnkrQ/QA x+CeA3fy8mppbGkSS/4Vs17KfGAm6nUpTK2ofVQpgRKDmOH3bKdKyDB4t/GOx1Pexks0 lY5QZp4nzxGjwPwXZqsFmCqrGP1PiLdshQPdXjz7yWfKHQ2B0cVTa3ZlFZXOjeTjPa4x aV7Ydk79BdFzxKZfCPHBSHV0v83rzibBTl8O92BTyh+ht/MlETy9aLIcDbYZV9denV1O jRkQ== X-Gm-Message-State: AAQBX9eERY7ckF61B9g+T2h+Aa6YpwYY5/9mZX1HbvF/CGwrk1Vx/fL+ bbAbVchjYCHv4hT6Dzsi8MrnvMel7FmBSqisO0ye79N6bpvbzu8BPwek6DkepGJiU04FHemlBcr L7GjfowbhMQx29B380YoECXiC X-Received: by 2002:a17:907:838d:b0:947:4828:4399 with SMTP id mv13-20020a170907838d00b0094748284399mr7869344ejc.12.1681813020428; Tue, 18 Apr 2023 03:17:00 -0700 (PDT) X-Received: by 2002:a17:907:838d:b0:947:4828:4399 with SMTP id mv13-20020a170907838d00b0094748284399mr7869332ejc.12.1681813020026; Tue, 18 Apr 2023 03:17:00 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id z17-20020a170906715100b0093f822321fesm7835354ejj.137.2023.04.18.03.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 03:16:59 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 99F12AA85EB; Tue, 18 Apr 2023 12:16:58 +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> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 18 Apr 2023 12:16:58 +0200 Message-ID: <874jpdwl45.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,T_SCC_BODY_TEXT_LINE 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: >> In addition, presumably when using this mode, the other XDP actions >> (XDP_PASS, XDP_REDIRECT to other targets) would stop working unless we >> add special handling for that in the kernel? We'll definitely need to >> handle that somehow... > > I am not familiar with all the details here. Do you know a reason why > these cases would stop working / why special handling would be needed? > For example, if I have a UMEM that uses hugepages and XDP_PASS is > returned, then the data is just copied into an SKB right? SKBs can > also be created directly from hugepages AFAIK. So I don't understand > what the issue would be. Can someone explain this concern? Well, I was asking :) It may well be that the SKB path just works; did you test this? Pretty sure XDP_REDIRECT to another device won't, though? -Toke