Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4745535rwr; Sun, 23 Apr 2023 12:15:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GdpPCMtkBB6FtsSiql3peGGEQI3vqzjhsP/oFq1rrcX4nptJ6iDe9XS2wnDbjdkUxG4Mi X-Received: by 2002:a17:902:ea02:b0:1a9:7bf4:17c0 with SMTP id s2-20020a170902ea0200b001a97bf417c0mr165905plg.4.1682277338479; Sun, 23 Apr 2023 12:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682277338; cv=none; d=google.com; s=arc-20160816; b=n5BMgJq6u12nulKNlB6zo33r0uiX7EwH4MK91ykGEXt4xVerQXBCwjF/c4qIG6SDsX HUNRjPj2KRD803QnVMCZLW2sCWwxjiBPLaZi7+zUr1pZ09qL6hjP8Hgy1kT3SBPD/yuI h8u6MBtMFJTmlPdARNkW09nP7diOjJO0kaEgby9HfR9T+jXjcK0MrvOxjhQRUOeaMTpO /drHaeGD4NLdFb0sb+ZkZM0bJvFmKmnDcgPdvoTOuVHAj35jrCnOrs4Q3pTdnf+b9EV3 z05Anuc6WBmJ6vJndv7i5TICO5NTNUs0uxfrzap1CkIJnEGpAqk5xIUWt9g1oNhGEWbu jz2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ajc3OSoJBNJY54dtxIfH8gJgclQJ17/OnLquSrnGNHs=; b=f+XSLUdemX1SnxBz8y7vwnJ5KvJP9cgMzCeaR5kgfvIsnNvga/HuSE3goPD5u7hnbz 9xgFhUtd8NB9uzxTcEqgkh01lQ7l6Z8DfdqfsUg/ot9NXFhlVvTmQSMOdWP7LdvHaHzt H7YXWUCSllLGU2TZIpZ2vyO9W1ouhP9aRQd8IdOIkfqAkP4k+3XAvDD15T2htOAbS2/Q 2eyhzaGRsOfvw1+FAWo8h6URK1nj2k/uaASBmoD443RzRyWk2IzPDqqzC1wnopID1B0g J0sIm7p9HVwXLR8LfwVJybKMnECKdHUabq821+nubteQhwl8CzxCZKs2vyG2t46DGveH gtlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dectris.com header.s=google header.b=aKnhENXa; 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=dectris.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020a63ba1a000000b00517aaf50a82si9796158pgf.854.2023.04.23.12.15.19; Sun, 23 Apr 2023 12:15:38 -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=@dectris.com header.s=google header.b=aKnhENXa; 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=dectris.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbjDWRyy (ORCPT + 99 others); Sun, 23 Apr 2023 13:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjDWRyx (ORCPT ); Sun, 23 Apr 2023 13:54:53 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46C3B10DC for ; Sun, 23 Apr 2023 10:54:51 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-94ef0a8546fso532436866b.1 for ; Sun, 23 Apr 2023 10:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dectris.com; s=google; t=1682272489; x=1684864489; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ajc3OSoJBNJY54dtxIfH8gJgclQJ17/OnLquSrnGNHs=; b=aKnhENXaISvHLpuTquFn+OXkK6mk2sADL9n5xWaVwf0ERvQfoHbHWf+uuh1C+dkzIo 6KWXVLtM/gVrF7GJzzN2vWQIsHiabNol6X/jR3q5glkK0ch2hRAea76cpiHNQ8EaeQkT if8h/4is2R3zcGDJ3I37WLoqn8+qPOMu8zLkQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682272489; x=1684864489; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ajc3OSoJBNJY54dtxIfH8gJgclQJ17/OnLquSrnGNHs=; b=fL6OubsJ+/Tc3E+ORFA2UDOhWA5IEFSbTkJ/M2c23GGWUaDE6TE6c9OnTebhTcn7+A 8OfDPgz7ER5sXgJj1sD1GllNftABpLPfG6883WSU1ht9LLGq5Jgvijxu9jxekTEjFT38 P1jUuc6EZ94GQTsH2kNwMUtvU62bSq3tjKimh1+gX+zlQcp6YRv620MLCWLfjrtEDOO7 H6N/nBhTJWe6741tTHNA7NL7tDN+cD2ZlvPJodHgJksG67harfViSA2lqX0rlJpodCaD 1FnWi9XcuvlGutLRfiQIck4oCAgXz7MLwVySnGgOQzyA4FhvsaUo+/MVuMubIv5nCdXq cPkg== X-Gm-Message-State: AAQBX9eGOd4b4sEsuzrQHfboWWr9GNbMIk4zJvsRxQVbvmnz8VY77lJn vO9yXvBc6HOu+WwoPumo/6+uwlfxnpmfRqGZvAy+sw== X-Received: by 2002:a17:906:7a16:b0:94e:f738:514f with SMTP id d22-20020a1709067a1600b0094ef738514fmr8673988ejo.13.1682272489621; Sun, 23 Apr 2023 10:54:49 -0700 (PDT) MIME-Version: 1.0 References: <20230423075335.92597-1-kal.conley@dectris.com> In-Reply-To: <20230423075335.92597-1-kal.conley@dectris.com> From: Kal Cutter Conley Date: Sun, 23 Apr 2023 19:54:38 +0200 Message-ID: Subject: Re: [PATCH] xsk: Use pool->dma_pages to check for DMA To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 > Compare pool->dma_pages instead of pool->dma_pages_cnt to check for an > active DMA mapping. pool->dma_pages needs to be read anyway to access > the map so this compiles to more efficient code. > > Signed-off-by: Kal Conley > Acked-by: Magnus Karlsson I forgot to specify the target tree. This patch should be applied to bpf-next.