From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 1E44569941 for ; Wed, 31 Jan 2024 09:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693238; cv=none; b=TADPqwZJqPw0Zzliqom+ecyIloTriD55pKCwMSDghicHC+kEQs/+i7gSU7T43qJRyqf2HV3Qh6CDjKq1mizI93NiqzWc/eYEnxpUU16s30602z83VQGDmNoFtR9S1vBi0M1PzPbECUhFfZlp8w52fw6gKopH+6BAsi7xoZ2j/go= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693238; c=relaxed/simple; bh=Y8OInFyezrqdukb/GwASp6AxHMdhZSdbYSe2C0Yjdp4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JXPaXccih6M0YN1zMRHxNGK8M0nQ7sCxHG2eQCvq3EgssihlWUZcUGQMFX7TLEKkdC+Bznl54VfSTVEt3v1aG2uee7C/z72MD2g0DWk1YKKaxDWVK490DsM+OKihV5ad+548f/7E6uHV50oyOmOsnaSoUEiD5g2LMSxlINYfDjU= 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=T+igxPIZ; arc=none smtp.client-ip=209.85.128.48 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="T+igxPIZ" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40e7e2e04f0so52873405e9.1 for ; Wed, 31 Jan 2024 01:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1706693235; x=1707298035; 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=Y8OInFyezrqdukb/GwASp6AxHMdhZSdbYSe2C0Yjdp4=; b=T+igxPIZCS+2/RSlqXuMACcm/EWkQnd56pzdIEKrrx/su2bTu8YVLHcFcb27DE662G jbxjMfoPJBe79SUkG0NzOaTgibUPI8q0Pq/R7fBV9ki0t5tUrO2czGrdfxv1X8J3n7Iq X2an1NzrQi7Dve/VBQ6GNQTccNyIRW/PJOnRGVmllj419AlZyR5JJutQUmeSVywx8tsW pm/I40AX7PexAJsHyOHIWd8StZ2kWl0YP6LQOBXZ2ppiihjFesyvGacYyXURVS8tQwqT zpcEZI/O6MCZkQPKFciWIqaD0eDu38pC5BFe0ED7LUc1HaLvHFXDhiMYgxLWeAOlrYOZ h3Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706693235; x=1707298035; 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=Y8OInFyezrqdukb/GwASp6AxHMdhZSdbYSe2C0Yjdp4=; b=jmJ/kqewLMJby1Ang34IC4bplBX1X/ikwr9BR6lQqm61oXCc1mpjYznDOezMBtmh+d jKJMmbkS9j6dtSkpZudAv1PKqmULBxgdcpwA+nqpXGInKvBP+T9F9krMvhZeBAEjEymb 6ruVhJ9syvjYDoy5x5skn/wo6Z3Un+VBquitgMxq2BeN10w3CrGbXkbIH3A1RprASYaT tUPbkznQ5mIzEZUiAfbc+qd/fMI+YBqIuyTcg0MQQ/yGxm/7TSrmbTW/bFlGi1JeploX fq8D6iZQ4sRKVQNxcbYWaR80nLuZzXUyXBENOT1/mbs8tzWjXqp7jCuJqrqxnX2F1I1B FBgg== X-Gm-Message-State: AOJu0Ywir9bXL1Cg7KmM3fOfQ5YrKFeev7Dyg+RucH0wLqvPDOjek+k0 rPuSH0YgiaKBGPF14QVstxdDKIw6lh1hguNDizl3s8tR5E9VLJ1GT02K38xZ4VM= X-Google-Smtp-Source: AGHT+IFEk3sXmo/8nD37OajxhjHLoj3FvLxRBfdiUIX11PVK7l6akHuoOCda1RllApfdmRYPKnPpQA== X-Received: by 2002:a05:600c:3b96:b0:40e:b17d:2f56 with SMTP id n22-20020a05600c3b9600b0040eb17d2f56mr726511wms.23.1706693235314; Wed, 31 Jan 2024 01:27:15 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU3tVoRf/Ilhag6NTF8xmvYPAjW7Ho+rPuOSGXzo2RiQEFRuGtN0xOmS+da8+LcJrxmdn5MKjeVtUW+ZnS+VLMbG3ZfPhW3u3Vu5L0BY0XM0aFTV7d0ySdY8fJ9TLTBlUpUmpPBCHhZOGL2Fc9eJuHE0ZolsRPLsT7e3HYJRzsgTBbUhpo1wUoKHLSgOqabOybMBJ6UVHYoquBpUlz0XBX3p4u0ZTPhgHGY9+1jO+DyTvn6KXFbv+W6yLabqTmTXTu9VoUcA2+6492GlezZpHV3yPQNwYqR1GvQWH5eL0bE75HEA6k5WtrE+bSB9R2XkIq2 Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id bh23-20020a05600c3d1700b0040d5a9d6b68sm1018522wmb.6.2024.01.31.01.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:27:14 -0800 (PST) Date: Wed, 31 Jan 2024 10:27:12 +0100 From: Jiri Pirko To: Kunwu Chan Cc: roopa@nvidia.com, razor@blackwall.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, bridge@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: bridge: Use KMEM_CACHE instead of kmem_cache_create Message-ID: References: <20240130092536.73623-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: <20240130092536.73623-1-chentao@kylinos.cn> Tue, Jan 30, 2024 at 10:25:36AM 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