From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47B0F63CD for ; Fri, 11 Aug 2023 09:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFFDCC433C7; Fri, 11 Aug 2023 09:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691747876; bh=IWEzOGFlkiCaa8WQRfeZqYf1TPywOjZtPgg7LNZcOng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IKC4KFHtn8DPv5+T66P6WZ7Z3eCcoiNIvPTP3rLhMiWlqDysd1O9p/QTlWQjJt45i tv3IA+UL3U0srgdeli0x7xgVaUv04gs3YA0LXHNPp/qQ4tBOlDI1MMORfVK+woA3mT 2cGzXllwwexvptF6239vXlW1DZdFHUoiSRPTOCCAB6mRbc7tHgijShFb/0I0BRqWZJ sWbzmE36Ox3BXvz+KqhSljIPBY9INs0Oc05Z+tv7nKSczyQy3xi6kqcM4umu9+cgZD kzHlBYVMW9Eg63X7/ukUwNV2swVwjpYFcbENCUE1oX6ctFTxJClwL97ALnpHJaWVc5 CRSXCmvjXxXbw== Date: Fri, 11 Aug 2023 11:57:52 +0200 From: Simon Horman To: Li Zetao Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, idosch@nvidia.com, razor@blackwall.org, jbenc@redhat.com, gavinl@nvidia.com, wsa+renesas@sang-engineering.com, vladimir@nikishkin.pw, netdev@vger.kernel.org Subject: Re: [PATCH net-next 1/2] net: macsec: Use helper functions to update stats Message-ID: References: <20230810085642.3781460-1-lizetao1@huawei.com> <20230810085642.3781460-2-lizetao1@huawei.com> 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: <20230810085642.3781460-2-lizetao1@huawei.com> On Thu, Aug 10, 2023 at 04:56:41PM +0800, Li Zetao wrote: > Use the helper functions dev_sw_netstats_rx_add() and > dev_sw_netstats_tx_add() to update stats, which helps to > provide code readability. > > Signed-off-by: Li Zetao Reviewed-by: Simon Horman