Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp54441rdb; Thu, 1 Feb 2024 01:40:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk1E4/+110qSVkw6l/O+nJ1R94jD3t9AqY6GOp9V2l6mf7lMGsEj0LFbC/Vx6DOdicuY1I X-Received: by 2002:a05:6102:80f:b0:46b:1845:1043 with SMTP id g15-20020a056102080f00b0046b18451043mr3762145vsb.18.1706780450964; Thu, 01 Feb 2024 01:40:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706780450; cv=pass; d=google.com; s=arc-20160816; b=XqUqTQYBsG9uVkbdkNu+OpIQRDLRx4cY566ksJemdFDIy2lhoK+GTutUP4QAv/hUN5 EueTaVLBUYujyVPBN2M3WDtTA2t9dycALKVxBOcvd+y6vBqkmcoHNuwbNKzLuQXaVRru 7jUN+LObUzMzSomoWJ0OAFHIuTMgCzJ+su2ierPa/mJoM0WKqZztwwnJ0OG8EKqqUFiP +ZcVdcSsTZB/HSbfAilAdxL/Jx7GC6l6ox3Hib5dBmEqnDCViBbl8iruhiqmTGD6dgGM 3fUDkpbxRQjyy3D67EjpnKW62zzfEmhhfUbnrvxZCYHkxxKOhddvDRF9fSCJbStYpT57 u9bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=iVB9Pw91ZQiqJxhflZjdTstz9BhoeMHXkV4VjV5TLUw=; fh=s7Zh9MmWfkb5kuVhEjdaIkNmbpfTbntQY9l8icg534E=; b=hSfohu9N54QXT3mQif5Agvp2Q5OgUmDbFeXc31GX32TgICgp6gn48NrpeDkjGfZnMq 8gA+/37usMP0c4lAWtsYHQpmUjwdFG9j1GQTraElXqHL6e36peGNMTkSAOsKK/Y2514L U4lBuglEmJPS8WUwB2kCm7HuzJljhEx9j2nvyLt3lag0LEyiHGLZ0A5KWJh+1/Gcxobq vuXWc+rFy7LGPqOS4brAWWKdkPDoxSZDjJL9ST0v3l9pCyln+7yMQ2xM2LFTGR2OjXpx K2iEG1KSL9dCDKk2Lrke2+zX08AfPXMTbmTcAtYrDKq1QIK1pnpir2AQmSEnaew3Alwz uxlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AIHzLhlh; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCVvxyDSi1hwmmDOf9xeFQ74lxAJTGQxxuwhwhHRN9U8lVEtMKtry2KkDjkLgUqKjjO0LBKyAmyaZDK6P77mcZCgcug/1Fp5+xiUJHCc0g== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b2-20020ac87fc2000000b0042ab228f5dcsi6106863qtk.779.2024.02.01.01.40.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AIHzLhlh; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47896-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47896-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 297081C27B0D for ; Thu, 1 Feb 2024 09:40:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B35715B111; Thu, 1 Feb 2024 09:39:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AIHzLhlh" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 894EF157E8C for ; Thu, 1 Feb 2024 09:39:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706780365; cv=none; b=r1t8a0dfHuQsUwKtBMS5sYluBUP/5JY6jHs2pgMuanmc1Bo2JOfaKKurMQcDSWWdZ3oL+c/oa9ZFGzT78tfzSHxi2TSsWB1yqLMg36xyYwMoeb4FNwlmzu2d5/oDeZYPd9xpRkBCk16LPwhsBfN90xbNDKE7hAzefZqVJEU5B+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706780365; c=relaxed/simple; bh=iVB9Pw91ZQiqJxhflZjdTstz9BhoeMHXkV4VjV5TLUw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=bHgTfW7e9B7Bp23TFoJGes7eQocgTxt/IFAW0Jf9iVs5gBZz1N77EIaC4mV6FxId4sKbquFtnWHZsnNanFNy4b7SZDDlUah2AhrWqE4lkq1ti4GKqwv2DvWnhu6ab0FQHm+B+YO4fqP7QkAbi9gSUisomuQwNfzplO5hwo0+6lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=AIHzLhlh; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706780362; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=iVB9Pw91ZQiqJxhflZjdTstz9BhoeMHXkV4VjV5TLUw=; b=AIHzLhlh7UG8HebA78iMRP+ZhlCL2if0M47NJVbN3K+mQn7L1JfnomisKXytturixZUnZU 0OOLZJDYtS+9tMnXkc86FM8kgvSKiy4jS1zLyjNuDOeYOCV/HlgrGUnvCPT/noZsBWbZ7T G0Y25TzDhFEV1LIhIbMKTYspzcsihOg= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-450-R2ftXRjkNK-ZfcZ817HNpA-1; Thu, 01 Feb 2024 04:39:20 -0500 X-MC-Unique: R2ftXRjkNK-ZfcZ817HNpA-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-51025633d3cso112797e87.1 for ; Thu, 01 Feb 2024 01:39:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706780358; x=1707385158; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iVB9Pw91ZQiqJxhflZjdTstz9BhoeMHXkV4VjV5TLUw=; b=v35TW0AUUVVfPUMVCgmsgeg0Hs5EPr/HaS/Bi60q9osNlTrkvcM0eVzM05DWZlQLMG uasRorYH7SR3bWnNrIQey/vcFe0oemxf5J88hKQfIAezStEwBlU2i2SqEiQQjyB4xOuk MHnyQMAx5dJQt2hhi37zUR5oPgHE1XfHWMZ2vLKcHvlDm4X/y1y+T3jBdeJ36qfFwj6y CyRFg7wt6JBurDTZ/Yv6wU1sw3RYdXK8Sq9pm58goxnwvuiNwMfePRp+GbRZP0Z6mudT YRhXyIIN+20lu2KGkAdivQoo/r/nILM78BywlOO9h7LFZXWfj6HLEEVR6Y87mkCIpPIY Kx8g== X-Forwarded-Encrypted: i=0; AJvYcCWGEVRYw2I0hAKPv7XyOfagwWNs+4lUQJDtgw+AqiJVazpfenmVC6ZKR1WFfh69P+rX+hzlVIa8J+FaxgUErkbCTk9VjFqYccvWptQR X-Gm-Message-State: AOJu0YyvOHL2Mz4O687NnMs8nkj6/P1ypXO2bmtwWfYsnEfHauESn2u9 l+2PDBVXBbo1KCSuWB1KbDY/1xMdVtSD5oQyb/mD4Pc5m4PKcZYk6+q39Ai6meGwWn69FbMv2cv sqVQQbSMZ/kev6ijtNqLMeVU7eTWhAatvZFrK3zLbWquz6xNLlweL9NeWHjpXUg== X-Received: by 2002:a19:2d11:0:b0:510:1410:5a72 with SMTP id k17-20020a192d11000000b0051014105a72mr2416288lfj.2.1706780358536; Thu, 01 Feb 2024 01:39:18 -0800 (PST) X-Received: by 2002:a19:2d11:0:b0:510:1410:5a72 with SMTP id k17-20020a192d11000000b0051014105a72mr2416266lfj.2.1706780358163; Thu, 01 Feb 2024 01:39:18 -0800 (PST) Received: from gerbillo.redhat.com (146-241-238-90.dyn.eolo.it. [146.241.238.90]) by smtp.gmail.com with ESMTPSA id h12-20020a05600c260c00b0040d87100733sm3800016wma.39.2024.02.01.01.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:39:17 -0800 (PST) Message-ID: <9cb2ec106f3f7864d0128102f9f49f3dbe0e58f7.camel@redhat.com> Subject: Re: [PATCH 1/4 V3 net-next] cpumask: add cpumask_weight_andnot() From: Paolo Abeni To: Souradeep Chakrabarti , kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, longli@microsoft.com, yury.norov@gmail.com, leon@kernel.org, cai.huoqing@linux.dev, ssengar@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Cc: schakrabarti@microsoft.com, paulros@microsoft.com Date: Thu, 01 Feb 2024 10:39:16 +0100 In-Reply-To: <1706509267-17754-2-git-send-email-schakrabarti@linux.microsoft.com> References: <1706509267-17754-1-git-send-email-schakrabarti@linux.microsoft.com> <1706509267-17754-2-git-send-email-schakrabarti@linux.microsoft.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+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CEsBsCJ97i2swm1DQiY1ZJ95G2Nz5PjNRSiymIw9/neTvUT8VJJhzRl3Nb/EmO/qeahfiG7zTpqSn2dEl+AwbcwQrbAhTPzuHIcoLZYV0xDWzAibUnn7pSrQKja+b8kHD9WF+m7dPlRVY7soqEYXylyCOXr5516upH8vVBmqweCIxXSWqPAhQq8d3hB/Ww2A0H0PBTN1REVw8pRLNApEA7C2nX6RW0XmA53PIQvAP0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sun, 2024-01-28 at 22:21 -0800, Souradeep Chakrabarti wrote: > From: Yury Norov >=20 > Similarly to cpumask_weight_and(), cpumask_weight_andnot() is a handy > helper that may help to avoid creating an intermediate mask just to > calculate number of bits that set in a 1st given mask, and clear in 2nd > one. >=20 > Signed-off-by: Yury Norov > Reviewed-by: Jacob Keller @Yury, I guess you are fine with this patch (and the next one) going through the net-next tree, but could you confirm that?=20 Thanks! Paolo