Subject: Re: [PATCH v2 1/2] net: page_pool: check page pool ethtool stats

From: Jakub Kicinski <[email-masked]>
Date: Mon, 2 Oct 2023 12:46:50 -0700

On Sun, 1 Oct 2023 13:41:15 +0200 Sven Auhagen wrote:
> If the page_pool variable is null while passing it to
> the page_pool_get_stats function we receive a kernel error.
> 
> Check if the page_pool variable is at least valid.

IMHO this seems insufficient, the driver still has to check if PP 
was instantiated when the strings are queried. My weak preference
would be to stick to v1 and have the driver check all the conditions.
But if nobody else feels this way, it's fine :)