From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 8822E60B85 for ; Wed, 31 Jan 2024 09:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693225; cv=none; b=KRVq3sOtcZa+/b1uVAfSZoSzBLtAU8Uu1kb3AY6w0qVboPbDF3tKVP1lBG6St2jN8gJpAiLIbLthePr/c2n66eNc9Zbf9LyagnxaIBX14IF1LxVbt1+ZheMNFBbH/bTCpRAuXyX/Zki9zcqenCUnPCeLRZaGKt8KHxzA7bdvRqo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693225; c=relaxed/simple; bh=rhQA2FmHrcqOgIeZU5cWjN5fprAbJktRS3V/E4b4y1A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DvugMlq571bJe+Bl6F+x+YwzetRsMRJoe1ppA0MI5lBZC+P/lLFRQUnuT3tESVKpMzx8DXCiU3aBF79WUZoMvQV6j9gmDZuILQCC23Uyot3KxH/bZ2wMH6afFsTYzUoiTZAFK9VGxyZQuDoeZm3dTtpjqOsvo2O1D9CQSpe9hds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=CFxCHpR0; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="CFxCHpR0" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40fb3e278adso3918185e9.2 for ; Wed, 31 Jan 2024 01:27:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1706693221; x=1707298021; 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=rhQA2FmHrcqOgIeZU5cWjN5fprAbJktRS3V/E4b4y1A=; b=CFxCHpR0Gy4y6zIBtPbB+i4FP/E9Z6TwhoOTB8IirWV8DBB6foH1xwP3o7c3xWhX/N 081dqK8wvoJP3v2OfIHr3fEF9Z/e1WSDSj9IOqlBbGfCqtXe1gl3cu7uBdYVacykwnhC fdj05hzCNJX86yDHZWOoVT0rO/cPLJA4nvcLtDstgB24THeiAeHpFxGQGxWIj96EXoj2 4QAYmAS0qDThmi7HpW0dL6G5WUnxrmevsPZ65PNKh6ohQAdbdyd6FBDroBhdjyp9j89m OeSAPAvrrOFHBCB0iV2FlTOWFMMqKVWgN6TfpLmEatQYc+wfwrYm+lzYf7XfSqFsiQbp LP6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706693221; x=1707298021; 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=rhQA2FmHrcqOgIeZU5cWjN5fprAbJktRS3V/E4b4y1A=; b=LCP/sboYS2oQZV5kD0GLVTzVT//67HmykWKNhuNDcnNweEfFOA63CdgyEMLVrt3elk 0WRi+MOeA1MbrvAdPNbEqR87va5aE3v3ljm3l8CyzpECTKthU3wW/tIthTKayKH6FwzU lMfha317PfFvM+ZHWh867cmKuq/RY/gUciLpfX7x6/TonHYYdF+QOeHZcF8wL58sYqXb 79PVBC/dSUzvMMbMBR8mgbos6r7wjju+3xNeuDle1WE/WAAqcz2d/RajhTSZQ3WBa/PK lQeFF9L+b6sEDCTIyFA14XDAVMCyO7LgWv/PDOX1luaUDRclNL16vFMzE6j5tRs9gWBe +y4g== X-Gm-Message-State: AOJu0YwyxiuTiF1kA+R6r/jSec5sE27SaNfa1x1tYbfOobPX51dY2EYX OrLEsJULpuFCzAmRP5fFuLHpp/J+e7bmvgTcidzDoy/PfPbJHjFpLR22V0j0fqg= X-Google-Smtp-Source: AGHT+IGRRU5Pkx39uGUu28oj9/gaWzncSIVqDC3xzYrWceMVa99AVP2h25/ptA1pz23ucLvApAPdYA== X-Received: by 2002:a05:600c:1c9c:b0:40e:88be:ec58 with SMTP id k28-20020a05600c1c9c00b0040e88beec58mr798750wms.31.1706693221528; Wed, 31 Jan 2024 01:27:01 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU2ER2OHY7bbFbK6Op6OW6Igh0mvGMHsBVflZyjYPwUJCKu9nujqqSipHb4+tme3E9poFp5bgt8JO3nPOUJFsB4esGj12OKeWwaGp95irFcBMdNwqcT1OJfq6UGNq4QTSAyCybIauV5FJmeVk2DAZHbQDv92xfL5FAljDjQEPX95jNOpQtu2C/RIiZD+vInKlyPEOvwdgz1rEXmRTf8Z9j13sS6kt/PScTKOlNXtqGKmwsfIujOcbl3Fto94w2GpFpZFUQ= Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id u10-20020a056000038a00b0033b07e4cadbsm282109wrf.115.2024.01.31.01.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:27:01 -0800 (PST) Date: Wed, 31 Jan 2024 10:26:57 +0100 From: Jiri Pirko To: Kunwu Chan Cc: davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: ipv4: Simplify the allocation of slab caches in inet_initpeers Message-ID: References: <20240130092255.73078-1-chentao@kylinos.cn> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240130092255.73078-1-chentao@kylinos.cn> Tue, Jan 30, 2024 at 10:22:55AM CET, chentao@kylinos.cn 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 Reviewed-by: Jiri Pirko