Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1724436rdb; Wed, 31 Jan 2024 07:20:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOvvo4YwT5xBp7Vo+tn0hco3OPsgXH/n/XdCHg/EuHqc/gyFCE38pRkhXTlAC4Hwhfkedn X-Received: by 2002:a6b:6811:0:b0:7bf:cfc2:1619 with SMTP id d17-20020a6b6811000000b007bfcfc21619mr2272815ioc.6.1706714412838; Wed, 31 Jan 2024 07:20:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706714412; cv=pass; d=google.com; s=arc-20160816; b=OM4yVTPL59v1l623OmLneosBNedSbCJDBtZudYz07mHprBWnKfA7kpQ1BIWb9fb99y //rktplAFcUz3Op9i5JeYmPmw7rhs9JsAd13X8hi7vENRqtlaXUlWXK0GzGGuZ728d3J 9vDzQcC1L5WN66XpYMn7QzuX/NIlwgoZQeLT/J1AOE6SXY/MnG1jQRQPoVu4XmnDdbYl j9n5sx7EjmCmWiuXdsRp60X0WPS+7hvNpXdtMxVe85zvFsP8e2spt7wMxpX6PKcDoPjl R+M8cnRpd2517Fn7fHpuBa9B4TExPcnMiRVhN400pKzYC8gTIcdI9AVz7CVUcl29NXO9 n4JA== 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=f43fKUriad8uDoZeZk6V7VP3GUeZsSWr0g2dLquSmNU=; fh=mCHxHAXy9VzpdYYeJ5mZn3ZNY5x7sSUsK4WxbwoudOg=; b=K8/SrLOqJjV4nqwHf6YhLYuLJejvyfU10hHhjnxsStYWFVONcXOgjvexqmuCb/iM20 np0DfCgiUybJQzjNq51HBbK8YR800kOcDpxfmYa6XKG+B6eKgRTxEYssNs05hs9IF8H/ PxM0MgFt5Fb0tIhY8XVAy0k+6bqemCXvCJmN0EHh6/VZI7imsKDzn6NajaR1ghsqi1Pb MEkm+x1lY0psKIeZNsDYmzFHAIPbsr1hHn8ASP1lBN4QcbY19QNF1iLC1ijn9Oe3OhhQ CwaPCYsd7unmXLQkc6Hdv1lpPfoD0kASMh3qRiJ3yNaRUFZ0BEnNvxcrMDo0c8X+dY8m MKRw==; 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="EdllPm/8"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-46137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46137-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUSJBF13MWBEkUqcrNg02HGiJHY+81HbMAhYlsJpp42/zsQ4BRET5gylyhKXBvzAh6ftBeVcAH3LHfK1K5IgxYrungYM4wdobgmj9BsHA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c7-20020a6566c7000000b005d8b2da4227si8335095pgw.99.2024.01.31.07.20.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:20:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="EdllPm/8"; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-46137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46137-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0500DB2D95E for ; Wed, 31 Jan 2024 09:29:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAC9267A1A; Wed, 31 Jan 2024 09:29:11 +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="EdllPm/8" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 E8EAE67745 for ; Wed, 31 Jan 2024 09:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693351; cv=none; b=Y6e1y9wU7fN7mSaHTIVPt1v6SV8S5yl6xtftnM8oZTUXPwQG64KUIWaqT8DEMpEaoDYQ8VaZ+vekNDznWSXDJxpfK4kb4+hNrxFMSYi8e3G/G5bbr78lAUb9KjnsQuj89F6+dyBiBVc7WP5LHzw5WK5BI9qHbQfHI285jhpPHtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706693351; c=relaxed/simple; bh=f43fKUriad8uDoZeZk6V7VP3GUeZsSWr0g2dLquSmNU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y+/8gQ1oykOH+HmXnLJCgt/xoKLuZ4FOXKSS3AfsohgZPh/9ab16RwVN0OBMfGWQaFCY8SmYAO6952p1BgVmmBTTMueZ1sEh7r/TndFj9l/RYHmAvOJCNsH2SaDogcYokMfd3/oCjV43gXYMIlr3+kaZqtEcmNv3vMBGfLLl/p4= 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=EdllPm/8; arc=none smtp.client-ip=209.85.128.43 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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40eacb4bfa0so50812745e9.1 for ; Wed, 31 Jan 2024 01:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1706693346; x=1707298146; 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=f43fKUriad8uDoZeZk6V7VP3GUeZsSWr0g2dLquSmNU=; b=EdllPm/8J17oq9R3/crIAnK+8S3WFFRMxVjFdt6D7M7RIg78TNb1PmAPN6x+IJCFGq djaPW2JW/C1QV9N/po6BBwHr4AU+srLZJ1zVV5C6vpNgeL6xb/EZgQL7+UcmdnnDPL6S mTv1FAOVzqlp9DDwHPQt2Tr0h0ZumW+OEQnqkdu0tjTuYKeWgD+VAzYazRI9pbqvb8iH cT3fcbmZzlQLXsd9x7DsEBdi5OuoTMst703u9SY8QUhhUiYH+wyriG9C4HgW3zNxeUP/ t2IXaKvy/2pSGIaSAgPFHYZIZGID7chf/UzcWKHnAV1DMcSSxfaK7g0Uxc1oqXyOlVR3 0a4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706693346; x=1707298146; 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=f43fKUriad8uDoZeZk6V7VP3GUeZsSWr0g2dLquSmNU=; b=uaLPBQVGMyH8cMPOqTqnFqYtngOYuX8vedaXKQ6DjzrDNCEjiNevzjqy61lMLKd8Jo mrsDDaNPb1U5WyXL1qLv1tAn/2uEHOqPGdUfQ8OLf4zHmKn8cGMPmU8TdKVKJa3Ve8Un BBfUxQ/sbSbA65u+bkD6ahRL7YHFmiZqM2dWQ7FL4Kv1qxO8s4Jh1FhssjT7ewPkcqQw erUZb2qiQDOv/prYNf3Anek9vDJiqR+d4TUnWxx0qtb9yf7IBljxgPRpcrqLjhn/zvm0 pJ1D0If6RZFhSlZgoxcucIUlr7TQmaNQy0Sn+SvltVQFYvVtlxIe0enuvWgYm7YLfeUr msgg== X-Gm-Message-State: AOJu0Yxe6u8T+tERnfPG/ckDZ0B7mxkpSv0J9DOkWfoFC3GrB4qXqssc KOkZnYly64xNG/UoSe3rZ3Nrk2fY2CBCtitfqNBnMixi1mvtrACQJoFXwVaErBeCl3mbBcJkoG9 b9vUrPw== X-Received: by 2002:a05:600c:450a:b0:40e:622e:7449 with SMTP id t10-20020a05600c450a00b0040e622e7449mr725550wmo.22.1706693346221; Wed, 31 Jan 2024 01:29:06 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVyfO36vqppt50qgUDOESB2a3qrfawNZwydoEBbJCI2JFg2TkSMzceQG+yb8LZPQSoO4kGRBL1+yY176OY4Z/b+KmamlIS3odBxf6UcJ27Hq4EF6aJfpHGtOeLTCZhO9oN2umde/v3UImFWthmDH5Xoiv/XqcV9dmzMTMpWTbBCTMXyBcLltIfas4oEUjKtRDE2aw0UMgmrSbi6inIFA8grw6yf+HLvDwwjXVuWQoYBvVNVwk1TQTw5qq5yNBGoPB+FFX2/9g== Received: from localhost ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id b3-20020a05600003c300b0033afe6968bfsm2433573wrg.64.2024.01.31.01.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:29:05 -0800 (PST) Date: Wed, 31 Jan 2024 10:29:03 +0100 From: Jiri Pirko To: Kunwu Chan Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, dccp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dccp: Simplify the allocation of slab caches in dccp_ackvec_init Message-ID: References: <20240131090851.144229-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: <20240131090851.144229-1-chentao@kylinos.cn> Wed, Jan 31, 2024 at 10:08:51AM CET, chentao@kylinos.cn wrote: >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