Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1048639rdb; Tue, 30 Jan 2024 06:36:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqLNLpKMv6bTZYsXBEkraWGeTUg8BfmlWMA+bs4W8TCrcZuuizPJU0zgAXWjoQbFcGBQdY X-Received: by 2002:aa7:d60e:0:b0:55e:f8bd:6246 with SMTP id c14-20020aa7d60e000000b0055ef8bd6246mr3686618edr.18.1706625417006; Tue, 30 Jan 2024 06:36:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706625416; cv=pass; d=google.com; s=arc-20160816; b=Zj05XAr7B6HP7K9pdiaXfTqNllTzoBacGB/2Hbia0WRV7pR5fSYWrE6tAsICF/KVCA An5rUIyxTbRakmls3Gt9aLveCD37uSWYezbcECC+z+aQGHzt9zHOW4HPUZWem7o26qqJ 26SKjKOonKfmOcB6VVuC/1Vc52cnQATtZ6bqZ13+Y07bYZrEnIOVb1Ozt5zWCPoPJ7oj Y6zekvikq8LZY3qPiIJuP2xSIGUYKsd65Cgrmxc6XGSry3q9VNO2fpq4JaKFo9PtLpJM bJIXZ2j0V0bWEDkkfqf2gDjbjqZzNU+ZERgT831e/w3w3DtxM7Bwtw2gDd6/gN84TuE9 YRqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CvgkqrVhgwAp9eomtc6oUrzhXKUHKI4dKXoGY8fDTwo=; fh=Kok9hWvRoigNf+MGSrIAN4oGMgGAxGbcuvY7rgTOgdM=; b=Rt6KSnv/RV06ZrklEkSthvYYe8NzjJDLWWJhW+Fy7fOOrz7N5yFvqAWeaG3qqQkJbE rW2coEZP6bADsAorJVPUkRTiJD0f3/LUtfNTbvJ+v5eicFckbfWdLV4LAG+gO0IfhiU/ AzDw3nOuqyRZry6cSF7oHiUrW95Kskd9Q8Z9bLQFIC62CTIfUn1CUHRz2st3FXZY47p8 Nmd9+rEejvnORv5/KJOfaJk/QiZ4q5+SbGPz9jMXk+6h2TRvkfuDpLJEgoTqCzYGCN9N hKVUBymSzn7inS5DlEbw0Fbnlik5MF2QJ1UHhTgwjECjb7v1XCwgErd/wI+TBCZ9oqtk vVig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@blackwall-org.20230601.gappssmtp.com header.s=20230601 header.b=LTC8vNC5; arc=pass (i=1 dkim=pass dkdomain=blackwall-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-44258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44258-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t13-20020aa7d4cd000000b0055433016eaesi4855791edr.356.2024.01.30.06.36.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:36:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@blackwall-org.20230601.gappssmtp.com header.s=20230601 header.b=LTC8vNC5; arc=pass (i=1 dkim=pass dkdomain=blackwall-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-44258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44258-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0064C1F274DD for ; Tue, 30 Jan 2024 09:29:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB6946027C; Tue, 30 Jan 2024 09:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=blackwall-org.20230601.gappssmtp.com header.i=@blackwall-org.20230601.gappssmtp.com header.b="LTC8vNC5" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F36D59150 for ; Tue, 30 Jan 2024 09:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706606956; cv=none; b=UBfEJeqLuEac+taNs1CBpBvlDtRpSFnkXHpS7r40nIyD67h+lSqs01pA1NkxO03rAl6lUpt57XxuJr/h5mce6LBmkMc4Lg8e/qcuuXiau7/s73Gbo1dEAh8/3xUx2NMlKRPveZYSPNwIY5QFJQ1rArw9SAnGOtRKj6dqX8Tz86I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706606956; c=relaxed/simple; bh=g7/Tw40iurYfKeZa/xZvbogA0Dz7AsysUvBEQywxNgM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EXNJmCOrqmzEEnN5bB+3VtR98HZ7pVLyUmXrPSR8jCh30EsfMwDQbAzF77IlwBty1epYeURVQnV7C7xPqAeVyjw3C9oooA9gbswdZqyW2pRXcaWsDrHzklismnJOVANPpUSCfsmsHITwfGTEtiMZo0wl4huxNq339VGFcuaAaBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=blackwall.org; spf=none smtp.mailfrom=blackwall.org; dkim=pass (2048-bit key) header.d=blackwall-org.20230601.gappssmtp.com header.i=@blackwall-org.20230601.gappssmtp.com header.b=LTC8vNC5; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=blackwall.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=blackwall.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-51030ce36fbso3755340e87.3 for ; Tue, 30 Jan 2024 01:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blackwall-org.20230601.gappssmtp.com; s=20230601; t=1706606953; x=1707211753; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CvgkqrVhgwAp9eomtc6oUrzhXKUHKI4dKXoGY8fDTwo=; b=LTC8vNC55UBhWEq0pXzMViaOEpxTBpx8oevdKBkPJ7Qu8z/+2W8LRUwCLydB8VDgwK bjI0VtiE5T2L/gJIeXW7k568DO5qvCfX9BDFs5EU23bqX8XqnoASkGRPxmEILQioai98 vK+Vl2oAfeo7mArQm3Y9/hXsr+s4R64INoOb25dv46J36C54TRSs2hqfyyjmo5kzl5ZK i3wJOshkeYy1sunnO78ZPQhPq2KBhDrdBG1QhasqcvXY4zfDn8ylQ4Rqku3z75vTUjid W/KdktUGfXR+3hyLm6pbe9tjg+2FlwD7fbbrzvoqVynVm9u2ityoCeVjrvbp7VUHVb6H iokg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706606953; x=1707211753; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CvgkqrVhgwAp9eomtc6oUrzhXKUHKI4dKXoGY8fDTwo=; b=Wfghl+n8gXoujfGNwFzsNG0+4uiGuI1HR8k1iJqb5CjjhZcBrUeTUYbyTia/paWBGY UfggGzdqEY36uEWe0i8Z1NvnU3sQzG+951IHjEwlysqGsxDveFIk4kZWnapCCezKazyZ TSBNNJ/GxSbDi+n8wiE/pEPA7NsCKL6la/ypmfd+tYRnVaB16K8+EfGCaoClnISJynyv n2esdKJgL9DokX+5KLMjb0fCfcNNwciwnt4kQbHqmvH9lMsNFExtx3njM2N736efyQkR m7mkU5jE+VtzHZtZbnpe4Rel/DWkFSF2eWPHRJPDmzcqnjUvVHfRXL+9fk8mVMYxahCR 0uWg== X-Gm-Message-State: AOJu0Yx5MsuMnG2lOfIc+VajE3gqOO4XB8WS9+F+IaMK/LJjlRlrBsUe CG1o8CJS0zgx3okjmiBQHZI6n4TWWBDoxa+YXTvLU3H+3aP49ca8Op0OAS7PTgg= X-Received: by 2002:a05:6512:34d2:b0:50e:af9d:9b1 with SMTP id w18-20020a05651234d200b0050eaf9d09b1mr4522166lfr.14.1706606952959; Tue, 30 Jan 2024 01:29:12 -0800 (PST) Received: from [192.168.0.161] ([62.73.69.208]) by smtp.gmail.com with ESMTPSA id u16-20020a05600c19d000b0040e4733aecbsm12370438wmq.15.2024.01.30.01.29.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 01:29:12 -0800 (PST) Message-ID: <4c073b12-c1b7-44fd-8f46-d901a4cd403c@blackwall.org> Date: Tue, 30 Jan 2024 11:29:11 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next] net: bridge: Use KMEM_CACHE instead of kmem_cache_create Content-Language: en-US To: Kunwu Chan , roopa@nvidia.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: bridge@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240130092536.73623-1-chentao@kylinos.cn> From: Nikolay Aleksandrov In-Reply-To: <20240130092536.73623-1-chentao@kylinos.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 30/01/2024 11:25, Kunwu Chan wrote: > commit 0a31bd5f2bbb ("KMEM_CACHE(): simplify slab cache creation") > introduces a new macro. > Use the new KMEM_CACHE() macro instead of direct kmem_cache_create > to simplify the creation of SLAB caches. > > Signed-off-by: Kunwu Chan > --- > net/bridge/br_fdb.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c > index c622de5eccd0..c77591e63841 100644 > --- a/net/bridge/br_fdb.c > +++ b/net/bridge/br_fdb.c > @@ -35,10 +35,7 @@ static struct kmem_cache *br_fdb_cache __read_mostly; > > int __init br_fdb_init(void) > { > - br_fdb_cache = kmem_cache_create("bridge_fdb_cache", > - sizeof(struct net_bridge_fdb_entry), > - 0, > - SLAB_HWCACHE_ALIGN, NULL); > + br_fdb_cache = KMEM_CACHE(net_bridge_fdb_entry, SLAB_HWCACHE_ALIGN); > if (!br_fdb_cache) > return -ENOMEM; > Acked-by: Nikolay Aleksandrov