Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp882995rwl; Wed, 12 Apr 2023 05:35:46 -0700 (PDT) X-Google-Smtp-Source: AKy350b2CuxUhho7UoFbcfCUa1IioOZ2ihtSdIrEre216mFX6o06UPkv0YKkK77QQze94urC6PE2 X-Received: by 2002:a62:1712:0:b0:636:d5be:982f with SMTP id 18-20020a621712000000b00636d5be982fmr10720008pfx.6.1681302945873; Wed, 12 Apr 2023 05:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681302945; cv=none; d=google.com; s=arc-20160816; b=bILOEveEAAgwkZtcnYeG4WHrO+7nskzBqro30XpMkmEqnZTnO+QY4Md6I4MBe2clu9 YpyEpe3Ab+sTjqJv5FpLb3cKEwUYT35mMLgW9FFJoHwLJC0VwRryIvXLUHZB7eJBxFfQ v9laulqqqPHw0mBIt3SxLQwnSPWO89O3/ygA/7nQm3Hscs+EFOMa8NOcpMeiCoDPgrgB R7enyalvQoxL4Jrx6gAN9IcDb3GygGAsZwTRRwVaZBfevD8wnN6UNKG7gpcHQPdo6kRd 9C3Dj0titvmURRn7JkRBalWN0oICEXSZ59GshnHniPciTg+7nrJacOk969T2nBYDi9c/ 1GGw== 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=MLp10WEiVKKRfi0jPvUlHAptfbcw1jdZpFv7p0ceEMc=; b=GsvkYot8dNqOZpMBrJ6gc2yJQD6GgD+ZynpOBh+iphcaURgWdc39SVYpRG0eFSg7y+ rMwQMN028uDhbNClXzD6Xr+Ih5WMoCRJ3sxuPwKN33xy4NoFX9OKoM9OzH0A4CbmHElI k7FVxPX+ZM39fGgdZ2EIDXCgik5/L5QPjAwMWRRYWo03M+29GzvfULcZQyu8+rsjvxLy uTGbBReFMLAHeujJmiR4uCbWGDSculd4IrCZdU+NCJUiPiE8nW+2FKrNcue+wrUOYC99 D01CxUU1my7obuX1IH9Y8Mz03PrlJp401DnAu3UnQLhBFjb41J3nDiO8cijo5kjNd5Ep 9CIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dectris.com header.s=google header.b=fiko1kuj; 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 133-20020a63018b000000b0050c0a48480bsi15425372pgb.798.2023.04.12.05.35.33; Wed, 12 Apr 2023 05:35:45 -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=fiko1kuj; 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 S230167AbjDLMaT (ORCPT + 99 others); Wed, 12 Apr 2023 08:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbjDLMaR (ORCPT ); Wed, 12 Apr 2023 08:30:17 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B131769D for ; Wed, 12 Apr 2023 05:29:57 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-94a34a0fc1dso271242166b.1 for ; Wed, 12 Apr 2023 05:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dectris.com; s=google; t=1681302596; x=1683894596; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MLp10WEiVKKRfi0jPvUlHAptfbcw1jdZpFv7p0ceEMc=; b=fiko1kujM9EMpsIe8pKAFagHh9m6DO8hXPnkE34F9JJw1ZVbWKnzhuIyigxPgIe9bT mOdzvQtIqivAXnuTeumInAjKSXDkOsSdZDehT/8eRRNBp5trxGtLENMCpd0VDwd7LJjs hdWzdfn2cCG7Bhchj82AqR6FmV2J5ydn8Amo4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681302596; x=1683894596; 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=MLp10WEiVKKRfi0jPvUlHAptfbcw1jdZpFv7p0ceEMc=; b=BQ4o3nr3d+OW1To923EZ+x/Vg12AddrD4mOIN5CSYjCgq65v5uMG7Rb+b7y+mJzjPz oMiF/3zQH5KKrZFtaYtCfU6ozSZhEz3lqihw/lgaTYa2BxfHsdzNGHkEyV37JgAAGYwr BRIPYyDjjiUnIvqPsAJ1nFLEc8jqysR/hP2My0cxaap2GDhwOJb5137AudbVTa8/nMpO EKpnmJEWpiku0x+lbs9RdjYm3dIuxz65z16nxWH0XTX2hGRAf0LvkwLev0LO1mRdGuYL yYvaCPNDWC+L3RDO0nnqVCLDiP9UIyJuXTP11ip6M4FRWR4WCSuksJnPe9a5BoF3prMm wZqg== X-Gm-Message-State: AAQBX9dImJ2UwUVlEBAE7gaH3BuEMvUb2z17gXLtouHMxuPQVrHh0XHP +fVdtuidba8m3r2AXUm7+BCVihOK833GjomzGOuQNA== X-Received: by 2002:a50:d71e:0:b0:504:9c1f:1c65 with SMTP id t30-20020a50d71e000000b005049c1f1c65mr5431631edi.6.1681302596073; Wed, 12 Apr 2023 05:29:56 -0700 (PDT) MIME-Version: 1.0 References: <20230410121841.643254-1-kal.conley@dectris.com> In-Reply-To: From: Kal Cutter Conley Date: Wed, 12 Apr 2023 14:34:40 +0200 Message-ID: Subject: Re: [PATCH bpf-next] xsk: Simplify xp_aligned_validate_desc implementation To: Magnus Karlsson Cc: =?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 , 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,URIBL_BLOCKED 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 > > Perform the chunk boundary check like the page boundary check in > > xp_desc_crosses_non_contig_pg(). This simplifies the implementation and > > reduces the number of branches. > > Thanks for this simplification Kal. Just to check, does your change > pass the xsk selftests, especially the INV_DESC test? If so, then you > have my ack below. > > Acked-by: Magnus Karlsson Yes, I ran the XSK selftests and they all PASSED.