Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1741420rdb; Wed, 31 Jan 2024 07:47:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzVjwSZ+fLrQH7FYVrdMUoqdtMWt4c4ptoLZdXVaWfp761iUERWqv5RGzKvmIh7CN5Nw+m X-Received: by 2002:a17:902:b418:b0:1d3:45c8:bc0f with SMTP id x24-20020a170902b41800b001d345c8bc0fmr1880246plr.46.1706716060508; Wed, 31 Jan 2024 07:47:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706716060; cv=pass; d=google.com; s=arc-20160816; b=V+Ii/hVxzi4hACGQEiqI9NGWm5MA0w3FmVaNo3X4mgptOyh2LCamqmmb1U/ZP+UE+I XMfdPlyBwtPjtIcHEU6Q2iVJySTGAcmFiDWgHMeS20tjZG9LYNrnePB5EggEPkWJnLrk zUwl7foFtqoI53hSW9DjtvF4F8gHm02RilVF+UPx2M0SH5hVE7kc2K2EtLUaSjg+mJ0B GrYGXe+dX2q7PdyfeWTaFheok/IjZDwICd2/oVk1QmzIGYEfi8cwQVmcpFsj0FKVqDKo GeuvQqZL0L0YL9q+C6mGlg76/nJUjBprdUqnNTb3GsiCiLGLmP3sKkR+X3L+41fplF4S Ipdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=G+3RzESNcmAoi+uLGWx/knR8mgmMQGkRK1gayncsGk4=; fh=IpqDCAr/IYzPkB2kNeMlGvYB3NrrgZLlml96KQIdZOA=; b=PtAaQ68CghokdJLj4ymzkIcKTLhwJUNlUQhjJrR/qmo7Ua3Do1I8IGkX5Jr/djg+xA o0Y/ofR8GvJRxZddHvUNkpnpFewBzDuScys+IbylVzcqIyre0r10qhLpE6TxzF7auU4B JSbf4J5/79qvF0U65NbSxFYagrSRo/PyroFcLQAT5ju+plWRPm+bQFS8QY4tsXnSpzlc z8LZnr5wmKDyYHH6s7dBx2dvMiDQ7yaqJC06exKIT2hs7WbCJHbfBW5iJ+GxVhzq6fmK /NGphEguJOpY0noZ+CTuMYNs1wuPkRh/WcV6FoUsyxmn+Q/YQ7rSfko+4u2d5sgqfwyk MvEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="MdxY/Ueh"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-46135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46135-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUcj1aMWtLcum9WM5d5XOiBssydkuMjVCt+GhcJM0hmZNK4w8h/fELZ4O4uf2x3ZMHCBHUfuq9nCXTCOAC49DKks0HBGnGvppXS4AaaiQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u8-20020a1709026e0800b001d78541b723si9916051plk.496.2024.01.31.07.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:47:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="MdxY/Ueh"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-46135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46135-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F323228DED4 for ; Wed, 31 Jan 2024 09:28:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87910679ED; Wed, 31 Jan 2024 09:28:32 +0000 (UTC) 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="MdxY/Ueh" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 BAF8A651B6 for ; Wed, 31 Jan 2024 09:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693311; cv=none; b=ind1VQDSiyABqTtf5NisZEsSTeUxBU5Rr6cMaVSWrkkhR3fiGb4rduHS68DE1FKEqqc0fWMW53KiSE14dKXVXVtbA/RZtpkOh2NDnB50DFAEdFPbjZ6hXR3s6xAoYPTUC9XzGnWU/4cPeLGKwHITydWd0Dg2LYlm7l5/sixL5sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693311; c=relaxed/simple; bh=G+3RzESNcmAoi+uLGWx/knR8mgmMQGkRK1gayncsGk4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zm3gnRiXpRLET8fb8I8/AZKPGr4B8Ws5xhTRIA4l50l/Fef50oALAFI+AfL+PsTqq8HGGbojvUIgSl1NOljZlVQ4USVpeQ/KtLnr1cZMTtV+AhkyHtXoWEpfBAM9ubISI1/pxdnTs+wg9sudLfQnzqZpkWn00kcuC/vQtdlBkDY= 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=MdxY/Ueh; arc=none smtp.client-ip=209.85.221.54 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 Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33ae42033e2so2989373f8f.1 for ; Wed, 31 Jan 2024 01:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1706693307; x=1707298107; 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=G+3RzESNcmAoi+uLGWx/knR8mgmMQGkRK1gayncsGk4=; b=MdxY/UehoFDwJ9VpZVKRFuHHPSl2r9+g4G0tEnKUSjZUKxEe2iie+ZzgPeQGd0urfp vwzseFTjYsGG1W32f1vPVYe5nL4jnRnxGz872/NClFn5eQV4MOnGsFPzJ1qU+744Yw+P NGNZ1VLANLlPar9pQiYlIA5lkHkZ41jBKawCx+NX3d7ceb1OJw0VlS15nmcAabh9YbJQ VXUSSNH8q0v+1BJXWavpT9/mzu70HTfsPMtAracSywNtd46m8y+iIW4lAPHLBIGZwGc9 9OGwdnrjQ3bYIgQ0+wnlOOV82D5Sgvn6y+M5Nt1lPBm9qOHZyjbpKH9y0IEpR9QWnBty To2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706693307; x=1707298107; 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=G+3RzESNcmAoi+uLGWx/knR8mgmMQGkRK1gayncsGk4=; b=kZ/yBhrl4cJVligSJmXvt1BZwkt5BjZRAcy2zt60hN3/VT1K4tDor6H7YkLhGdkWGp B6GltrcSu4jksU2NeyQF/3kxXfFFGl/HpCaDpUie8Yu5dlQOl3EAFmDQk0BvCI9ZL/Kn +5Jdeov1qZuJxoUYjusQ8+xy3ZlCeOmHgN9JQFh6dloOFRoufaT5kPit3XglAByuy/92 qMRwT0nq7t+xE7XzM+wHaXECSi4tLm3yjxVzp0apx11GgCsXH+RDh7JtVXuWTPu0HELU QER+QbVJ28Ngtf+ptZDfKAaAUQQZz5qqHpqpYHeUQ1C9tfNFh7fEGbpH+aztAi6yy7Dq BG0g== X-Gm-Message-State: AOJu0YyKRkFqIYNW553MD1O9GxMTfTBEwLZw86jtZrCqdEL+yRmkBTN6 p0ahadFMXTQMvWnVhJluAF/xTQOWwUV375ZoBnGLCUU4Y+Z3f02BjbVKYMbRYGw= X-Received: by 2002:adf:a408:0:b0:33a:fcfc:d5d1 with SMTP id d8-20020adfa408000000b0033afcfcd5d1mr919635wra.69.1706693307033; Wed, 31 Jan 2024 01:28:27 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCV02MuHgO1tzsSApXnXIHx6F8wDdgiFvo7azMzwLbnHcjKAWeZUbOsULEK6YjF/4XAgbe+2B7XtFPIGtgan6Nl/WYsxq9KXvET/uTmouwnYokJXpbm1Vy5WPdXQwekg1OdLUYHpSDJcMPz+2ncMNiJm4Mq10obYKbW8ox7av5alLGUsHFwdMqfk92h+qsXEFWCkYUyjnptqMKF4QtLBsBvL11ek/ET7e+8hIVKQEVolw1Q+DkAJ8PnLl5wJboSchoSOxw3/y/VdU2sHkR/4+t5N6tK5XiiN5I4Hj4OTD8ycRimOzoTZNUgYrWVCJ351km7o3MPZ/gM= Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id bj26-20020a0560001e1a00b0033ae6530969sm10191409wrb.85.2024.01.31.01.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:28:26 -0800 (PST) Date: Wed, 31 Jan 2024 10:28:23 +0100 From: Jiri Pirko To: Kunwu Chan Cc: marcelo.leitner@gmail.com, lucien.xin@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] sctp: Simplify the allocation of slab caches Message-ID: References: <20240131084549.142595-1-chentao@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240131084549.142595-1-chentao@kylinos.cn> Wed, Jan 31, 2024 at 09:45:49AM 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