From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 17F0A1FCF41 for ; Thu, 7 Aug 2025 17:56:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754589389; cv=none; b=nB/fus+JMnmbuoYdL0vU5Dq644Zgy4I7u00JpzwIKHvi9RdmVLdMVddxWxt3NVcE3+G01slCQOGaavYybE/hd2VXAVbLeMW3cMAFOwPpfCCts6tnotnEl7R593NtTifGD1XK7BWLvDLzuVtVvN9Vj4dZub6H1lQ7Gpyqcp7C3+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754589389; c=relaxed/simple; bh=xUzIsduhnzH57x0xDZhlh0GrQPY8S5bdwG7nGOIeu/E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YErXLpnD9Q/oCfl/X4nFak9T0pwCGC71Fqpb3jhfuyp+WbGGv12stDwmq11kBTcSAfNTttAk3E8BJN9rGB48qozNFDuAkxelId3+MubsxIzTYaOsNNsr+z8WhIgrJdko046eaX3qu5wyJ3H5H8m6xI4/io84IAUW8ia181/H72Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=mHWx7TxD; arc=none smtp.client-ip=91.218.175.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="mHWx7TxD" Message-ID: <00745334-e29d-4e99-b2e3-8c0076146733@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1754589384; 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; bh=xUzIsduhnzH57x0xDZhlh0GrQPY8S5bdwG7nGOIeu/E=; b=mHWx7TxDpkFZuTCbQjDhn6SwmQfCbCEJiQc4yHl6m5MIDrwBOi+JgrXfNL5z9lp/BCGNln C24s4/UnhHQfPyJuan9e48V1040ySMgvq3P4edgDWK2daloJLVpswlN8kB5/c9jsrZB0Ae bqCIwnUr/LyaXfgE5t+59qKdRaeM0CM= Date: Thu, 7 Aug 2025 10:56:18 -0700 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf] bpf: Use cpumask_next_wrap() in get_next_cpu() Content-Language: en-GB To: Fushuai Wang , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Cc: martin.lau@linux.dev, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, song@kernel.org, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org References: <20250807024800.39491-1-wangfushuai@baidu.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20250807024800.39491-1-wangfushuai@baidu.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 8/6/25 7:48 PM, Fushuai Wang wrote: > Replace the manual sequence of cpumask_next() and cpumask_first() > with a single call to cpumask_next_wrap() in get_next_cpu(). > > Signed-off-by: Fushuai Wang Acked-by: Yonghong Song