Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4281188rdb; Mon, 11 Dec 2023 14:34:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IETgbk/Wki+dEvnLgcTOm2YR7urTR9sRtff4qsLKqLVJ527OK5M+mEpiJ7XZzZBwAAO9Sld X-Received: by 2002:a05:6870:d18e:b0:1fb:3bb9:578f with SMTP id a14-20020a056870d18e00b001fb3bb9578fmr6406360oac.102.1702334080250; Mon, 11 Dec 2023 14:34:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702334080; cv=none; d=google.com; s=arc-20160816; b=wMOLuIrGpx9PSgM5CWrT5mG1UyLVngP2h1gA1+21UuyyS5U/3xNDyw0f21jydnT+To Eo+sFMbKMBt2UrpCfzc/KGn7Vxi3kVBIyeLnKJBs+OrV8xoWcdIqGIlA+ceZaU7DXC+Z zhKetNaD/Pok8T3kBGvMC7yeUBG2GLF3Idk2XL32vvSZwCKBoYeexQJ7Ub0E0JKHNPco 3l5ThXhvjIf/m9AY1Jz/F2mCphk2M3O7vqAbGs2bnS0Wcj1cJdq1gw/PUftjkBfVG+ys K3I9HKZLoz2bx9388k0XIsXBfMlU9SGNmXFKbWXkITJI0QjXBQ4g14gXtBjHmnggza18 gdyg== 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=weETpER/W9eWKpDs0aTzW8/kqujO5Ns20F+TiP+lNxc=; fh=27mzmzToYsY4A5mgDcc1yPdIwzFZxu5gRtwNByDVhao=; b=nA3Eg3c2JJVaqirE/ZDnuJr4lqtDU0ygjVM5zFHu6mwjU3GgVq3dIKutqEo/rCZ6U0 7Trp4zAMyr3bqbDaqZzLmuMaRrBg1zduKSATfMYePSvmTGD98K66CiSY4ZkkBt9KpUQT OKeZWFsmuj7J2GZMfrUTbRN5iRdplSeQnpLKYjiNtxdSVzr4GHU+ZB16XN0uJ3HNGEn+ IFv2sTmsCE4UtNRDIt9QM9oq79zb8mU7XzI/9Atsz3mGphiTEml4+HYqE0GKc/+yAwXt TZIgAfRLkhJiB0AF9gNJovTpmwRlKpxBUaLSUgCJkV1vyfmSM+p9m7jZ6U24sPCM+okM h0iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pl79AuKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i9-20020a63e909000000b005bda1051dacsi6546154pgh.471.2023.12.11.14.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:34:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pl79AuKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id CCF0C806CC1D; Mon, 11 Dec 2023 14:34:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345076AbjLKWe3 (ORCPT + 99 others); Mon, 11 Dec 2023 17:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345037AbjLKWe2 (ORCPT ); Mon, 11 Dec 2023 17:34:28 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69ED5AD; Mon, 11 Dec 2023 14:34:35 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5d7346442d4so48469777b3.2; Mon, 11 Dec 2023 14:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702334074; x=1702938874; 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=weETpER/W9eWKpDs0aTzW8/kqujO5Ns20F+TiP+lNxc=; b=Pl79AuKHMkBMVGDU1JhLlZWOW82hDx+5kpah8WvIfmhdo3NFuiBWyiTL4jHiJ+vw3Y FD+a5CS0d/gsGgkN/H85162od3MZJM9TjNwgNiOFxN817dCnCtm4IrCcxIWcDYAtbbo4 1446I//YBfT6gMBKLfZXnLtY33YDdLUg1vrKoUXr3E7OtpOpkCu25VlVO9ZzgQ2vNrpB R+4cnnTMzwEFLdOzgH2Zvr8fJBN7gtXPaPoAeklKOt3s4iKdw0fkU4WjOKA562qk5MHx UrGZZWbGE1Hpta5GDVnoav1GSnRKn8yvdUhiggFBgeeEWE+Lv4W9tM6nhn6G3vYydW7/ ZH7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702334074; x=1702938874; 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=weETpER/W9eWKpDs0aTzW8/kqujO5Ns20F+TiP+lNxc=; b=J6vcHbs2TcXDlP88yz0kttxNPvJEYz581ya0CxBzw/9XBol4i2Db6XqLAGg6tnqBYS 7k9r2B7QFiI2yl4ydw/t1CYnkycDpf/H0X1QsdW9dc0nfyfU3LvWXybiffL5GUg7Sm3R wP0oJfQnoffWQHZI9WtysE927RjBiqyz/wATIM73I9dbnLXn3H59h11JSUOtQy2npjIK Ye9SECjAeqXrkDAu1BRqw9Dj6vOglrXkuW8XZBXFxt6jlzrQC4e+NcgdTKPGyccz9EvV 7rzv7PXh8q+57GHKxO51YGgNiubnN7Vn+hAdGy5BcTAiWpQZDhHt71KfsTh8A6da5ULP tFHw== X-Gm-Message-State: AOJu0Yx1PQJgu6sqGdNkJgnUL0JnZ0p56IEEu76A3jNCsm0MoiI2FiBu cRCmZFYesBogcbybC6u/aDs= X-Received: by 2002:a0d:d994:0:b0:5d7:1941:3576 with SMTP id b142-20020a0dd994000000b005d719413576mr3132315ywe.93.1702334074480; Mon, 11 Dec 2023 14:34:34 -0800 (PST) Received: from localhost ([2601:344:8301:57f0:38aa:1c88:df05:9b73]) by smtp.gmail.com with ESMTPSA id e3-20020a0dc203000000b005c5a08c5c15sm3297708ywd.136.2023.12.11.14.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 14:34:33 -0800 (PST) Date: Mon, 11 Dec 2023 14:34:33 -0800 From: Yury Norov To: Alexandra Winter Cc: linux-kernel@vger.kernel.org, Karsten Graul , Wenjia Zhang , Jan Karcher , "D. Wythe" , Tony Lu , Wen Gu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-s390@vger.kernel.org, netdev@vger.kernel.org, Jan Kara , Mirsad Todorovac , Matthew Wilcox , Rasmus Villemoes , Andy Shevchenko , Maxim Kuvyrkov , Alexey Klimov , Bart Van Assche , Sergey Shtylyov Subject: Re: [PATCH v2 31/35] net: smc: use find_and_set_bit() in smc_wr_tx_get_free_slot_index() Message-ID: References: <20231203192422.539300-1-yury.norov@gmail.com> <20231203193307.542794-1-yury.norov@gmail.com> <20231203193307.542794-30-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Dec 2023 14:34:38 -0800 (PST) On Mon, Dec 04, 2023 at 10:40:20AM +0100, Alexandra Winter wrote: > > > On 03.12.23 20:33, Yury Norov wrote: > > The function opencodes find_and_set_bit() with a for_each() loop. Use > > it, and make the whole function a simple almost one-liner. > > > > While here, drop explicit initialization of *idx, because it's already > > initialized by the caller in case of ENOLINK, or set properly with > > ->wr_tx_mask, if nothing is found, in case of EBUSY. > > > > CC: Tony Lu > > CC: Alexandra Winter > > Signed-off-by: Yury Norov > > --- > > Reviewed-by: Alexandra Winter > > > Thanks a lot for the great helper function! > I guess the top-level maintainers will figure out, how this series best finds its way upstream. Thanks, Alexandra. :) People in this thread say just pick their subsystem patch together with #1. So, I'm going to send v3 with some minor tweaks, and if everything is OK, will pull all this in my bitmap-for-next branch. Thanks, Yury