Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp992656rdb; Fri, 20 Oct 2023 05:46:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9wRA9JEfmg7xMus7IGXI223yeSjRzG/4ZucQSmgXXsFbU6Q2mCti3ieBCVWTuIP+wtKHw X-Received: by 2002:a05:6871:d0a:b0:1e9:9d3d:a96a with SMTP id vh10-20020a0568710d0a00b001e99d3da96amr2020623oab.41.1697805990579; Fri, 20 Oct 2023 05:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697805990; cv=none; d=google.com; s=arc-20160816; b=mAH2EXKNZxICmVon7COQfz9Fe8X7s1GghFlYHgUILkxVcccEl3nspx38uBjIfbE7X5 yniXp4NFVZ5cW24KHrrsN87Px3AYW/AOFdwfn4Hvqp+zOBc0Hxnfc143BkWz4Ha3RqD8 6sUqpKQOYopa1faLUYyZ8RcWlktrWFjyJiFqDKj8IZWQVM/WLo4kjFaDbVORnyBie5k9 Lt//rGfyNveP6sB6j0VhcNbXzJ/S9jQVA1haK5J/SIO+Csu8ztWSN6HNvBCzVKIsdD8w eEkFeZPb1rJCTAxyRyrvcbsbYujFrvDAN9R3jpMyChFAPdEniehgys8vbg7DZfdQPo1L nWsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jps82JBDACzoR3tUfyIbEtBbVZCxrcf9ApmwOX34umg=; fh=Aj6azqfBVh/uR7yb0ndLXnZF/R4igAiN0NDpuM5slRc=; b=d3Lr6YOvAsf4X6RMBVNBMt8yhoKhYM+LoGK4pufXjbBNC9hUD1mRRlAS4/UCG1rNNS a1YgvOziePEP5S9pq9jt6/KQw9cPpw41GCNZpNBUTUvVPulVMEAUdbrN7puZTn56GWVh xdv22tfiX6xm7OY8C4dWCnNt1VaIiH5jA7Vnfqnqjx8h3hJ90KTjH8w+/VQWejDR90Vz +u3+xBPjAr1dPDI4wGs77xhGFQNeJsHzRvfaxT/ZNxQvPEyHZM3dskxYioBrGtu7BJQh 1cZWW9SGe7ZNJMWFyN007mfoMNFmtYqwV/YbeRSXwutC42JCx3Buk7xFwpElBgp4Dtzr iTAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=laXN9bG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 195-20020a6302cc000000b005893a7c438esi1837919pgc.689.2023.10.20.05.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 05:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=laXN9bG1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A341681D317A; Fri, 20 Oct 2023 05:46:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377276AbjJTMqR (ORCPT + 99 others); Fri, 20 Oct 2023 08:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377437AbjJTMqL (ORCPT ); Fri, 20 Oct 2023 08:46:11 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A21A610F0; Fri, 20 Oct 2023 05:46:03 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5a81ab75f21so8124947b3.2; Fri, 20 Oct 2023 05:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697805963; x=1698410763; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jps82JBDACzoR3tUfyIbEtBbVZCxrcf9ApmwOX34umg=; b=laXN9bG1zVF8AtIP8UkdsW4iRjoCMsoW78sUky8pqGfIcUCKqVF3FjUMaqPVB0aEIL ku62I1LU5ZzawW4qAepATyBTtIpAj047WXFJ2Rk67D3TnSRHuGhKP+1IF9HsScbgq3ZF LlLL6M/td5VDMMdOm5eWny9ezycVrh/AYKwnN6g8uBfkldhZAwetXX6HmhKkyZ56LwFb 4zFtVi5Nk8hiKI+xlolDk5yPwcLx783Gk25bf55nY4VoGR+EDnSNWpAPClKNMJ1VpxiU z0G5SdkX3fdaVud8BbJGZbXNGgrLeQf1OXj9iAu1BxZpsQ+g9Mt4x3nQ8yGfOn0pqNsx kDBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697805963; x=1698410763; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jps82JBDACzoR3tUfyIbEtBbVZCxrcf9ApmwOX34umg=; b=qhuh/oRxJJJgUOCEPj+/kKXMzOgkjr7fL9gBRn6SAElBVOWH858SZblwIGsgmkiaxA +Xszia2hqTZ6i6y81L2LLECOnYmDvJzB1Pm5ctrvy71+ZcmlhpzqfQAsdrljlNcD8rjK T0aGk0GpJQUVcTll1KvBXUYn24HHtLmgSBBiU3nymeAx736cTTBSXz/FEuAn+Cv2aOQu j2H/jvtSaslQHVqwm4Yk3kxFSEied0IXl8tIFccV9NQyHPSbzgVXRZCrtF3zJXPIq5TU ln2ITDKAZJU3VrTCmkwxvNVzlB6qD6HOA7DQRPBVQMP+Q+o6Iyk2nq4yjj9tkohWa1qJ idXw== X-Gm-Message-State: AOJu0YyU70G84/rrY/EOfaMmxuxuAOeVssndcSr1hKLOcMFnSLrfQFyR W+1mZRGhwQvdvkrr8y+JZMQ= X-Received: by 2002:a05:690c:dc4:b0:5a7:aa54:42b1 with SMTP id db4-20020a05690c0dc400b005a7aa5442b1mr2232055ywb.28.1697805962604; Fri, 20 Oct 2023 05:46:02 -0700 (PDT) Received: from localhost ([2607:fb90:3e1a:8bc6:bf58:5f88:bb90:604]) by smtp.gmail.com with ESMTPSA id m205-20020a8171d6000000b0059af121d0b8sm654571ywc.52.2023.10.20.05.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 05:46:01 -0700 (PDT) Date: Fri, 20 Oct 2023 05:46:00 -0700 From: Yury Norov To: Alexander Lobakin Cc: Andy Shevchenko , Rasmus Villemoes , Alexander Potapenko , Jakub Kicinski , Eric Dumazet , David Ahern , Przemek Kitszel , Simon Horman , netdev@vger.kernel.org, Stephen Rothwell , linux-btrfs@vger.kernel.org, dm-devel@redhat.com, ntfs3@lists.linux.dev, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/13] ip_tunnel: convert __be16 tunnel flags to bitmaps Message-ID: References: <20231016165247.14212-1-aleksander.lobakin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 20 Oct 2023 05:46:27 -0700 (PDT) + Stephen On Mon, Oct 16, 2023 at 10:55:02AM -0700, Yury Norov wrote: > On Mon, Oct 16, 2023 at 06:52:34PM +0200, Alexander Lobakin wrote: > > Based on top of "Implement MTE tag compression for swapped pages"[0] > > from Alexander Potapenko as it uses its bitmap_{read,write}() functions > > to not introduce another pair of similar ones. > > > > Derived from the PFCP support series[1] as this grew bigger (2 -> 13 > > commits) and involved more core bitmap changes. Only commits 10 and 11 > > are from the mentioned tree, the rest is new. PFCP itself still depends > > on this series. > > > > IP tunnels have their flags defined as `__be16`, including UAPI, and > > after GTP was accepted, there are no more free bits left. UAPI (incl. > > direct usage of one of the user structs) and explicit Endianness only > > complicate things. > > Since it would either way end up with hundreds of locs due to all that, > > pick bitmaps right from the start to store the flags in the most native > > and scalable format with rich API. I don't think it's worth trying to > > praise luck and pick smth like u32 only to redo everything in x years :) > > More details regarding the IP tunnel flags is in 11 and 13. > > > > The rest is just a good bunch of prereqs and tests: a couple of new > > helpers and extensions to the old ones, a few optimizations to partially > > mitigate IP tunnel object code growth due to __be16 -> long, and > > decouping one UAPI struct used throughout the whole kernel into the > > userspace and the kernel space counterparts to eliminate the dependency. > > > > [0] https://lore.kernel.org/lkml/20231011172836.2579017-1-glider@google.com > > [1] https://lore.kernel.org/netdev/20230721071532.613888-1-marcin.szycik@linux.intel.com [...] > > --- > > Not sure whether it's fine to have that all in one series, but OTOH > > there's not much stuff I could split (like, 3 commits), it either > > depends directly (new helpers etc.) or will just generate suboptimal > > code w/o some of the commits. > > > > I'm also thinking of which tree this would ideally be taken through. > > The main subject is networking, but most of the commits are generic. > > My idea is to push this via Yury / bitmaps and then ask the netdev > > maintainers to pull his tree before they take PFCP (dependent on this > > one). > > Let's wait for more comments, but I'm generally OK with the generic > part, and have nothing against moving it, or the whole series, through > bitmap-for-next. I put this into bitmap-for-next, and it caused build failures for Stephen: https://lore.kernel.org/lkml/20220722191657.1d7282c2@canb.auug.org.au/ I can reproduce them too. So, removing from -next. Alexander, can you run another round with all found issues fixed? Thanks, Yury