[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240311151412.18639483@kernel.org>
Date: Mon, 11 Mar 2024 15:14:12 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Sai Krishna <saikrishnag@...vell.com>
Cc: <davem@...emloft.net>, <edumazet@...gle.com>, <pabeni@...hat.com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<sgoutham@...vell.com>, <gakula@...vell.com>, <hkelam@...vell.com>,
<sbhatta@...vell.com>
Subject: Re: [net-next PATCH v3] octeontx2-pf: Reset MAC stats during probe
On Fri, 8 Mar 2024 23:45:44 +0530 Sai Krishna wrote:
> @@ -3048,6 +3065,9 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>
> otx2_qos_init(pf, qos_txqs);
>
> + /* reset CGX/RPM MAC stats */
> + otx2_reset_mac_stats(pf);
> +
> return 0;
Looks suspicious, all sort of resets should be usually done before the
netdev / devlink instances are registered. As soon as you register those
they may get brought up and used (including synchronously by an
in-kernel user).
--
pw-bot: cr
Powered by blists - more mailing lists