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 4667482899; Thu, 23 Oct 2025 00:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761180965; cv=none; b=QXG5/ghDdbAET625c4Bi770Qeat+m2m8eZCzyUYplqqNuSu3QgIbP1uLopAi4jizJuZ7znX/vXp7rSbnEfRI5/XuxUhCJ73ox9eDglsl9T6pV7IqJDFfj4rrLdrTWkTkxtdtPFvcuL1zHfrN/SqbByv8Cd6jQCDgYFfCg5G8pe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761180965; c=relaxed/simple; bh=919OIB7G8MYaz4vd3DIyciwxunOCOVhTx3Xiov1GHts=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aKHcUqoMBniJlJuP8UWZLDumQfA9quhzYlMp2IqGUM9Yl2mnIv6xvcitcAejr+8qdCFs9hR6YZ3ZtuV+XUq/vjwT/hwGx42a+aMByOhjFQbRnqUaxguecF/YoHCZmtNOxqn4iyQ0SewQT9L9zhkfRb/xuHxvTBeu+7sZi515nO0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=s27osoOf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="s27osoOf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A5B6C4CEE7; Thu, 23 Oct 2025 00:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761180964; bh=919OIB7G8MYaz4vd3DIyciwxunOCOVhTx3Xiov1GHts=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s27osoOfpL8QKkqw2yh4FK25fkGHdNowAoucEE6RMvLRpdgyizdwi3jdNZYGXMGGC xC+AcBzEoj2FPuAfxjgdaT79d++L76FSNO1MhUYZOOgMlT+E01ToxMoOMl/LdgPZMP BNkTu41LztzUE5jWQj6y/2oPHLDeby50biUQCk8v9GnAQhPa0aZUHBQQrncnEI2C0r fySrcZjqJ7IQAugmtwT3mp4wlvbsu72Jmhl5WSDZJ2q8S0bSHh/O4QZIDztRPbJujq lAR+fgN55rzx1LrIOp+2se1ZdyU/NY0ghSRkpza1DISsl6dEkDgMwFNzDXBbAPxCwc 3/pNaQAyTcIUg== Date: Wed, 22 Oct 2025 17:56:02 -0700 From: Jakub Kicinski To: Daniel Zahka Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Saeed Mahameed , Leon Romanovsky , Tariq Toukan , Shuah Khan , Simon Horman , Donald Hunter , Boris Pismenny , Mark Bloch , Andrew Lunn , Willem de Bruijn , Rahul Rameshbabu , Cosmin Ratiu , Raed Salem , Kuniyuki Iwashima , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next 4/5] net/mlx5e: Add PSP stats support for Rx/Tx flows Message-ID: <20251022175602.560ad464@kernel.org> In-Reply-To: <20251022193739.1376320-5-daniel.zahka@gmail.com> References: <20251022193739.1376320-1-daniel.zahka@gmail.com> <20251022193739.1376320-5-daniel.zahka@gmail.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-Transfer-Encoding: 7bit On Wed, 22 Oct 2025 12:37:36 -0700 Daniel Zahka wrote: > mlx5_core_warn(mdev, > + "fail to create psp rx flow counter err(%ld)\n", > + PTR_ERR(flow_counter)); > + err = PTR_ERR(flow_counter); > + goto out_err; > + } > + accel_psp->rx_counter = flow_counter; > + > + flow_counter = mlx5_fc_create(mdev, false); > + if (IS_ERR(flow_counter)) { > + mlx5_core_warn(mdev, > + "fail to create psp rx auth fail flow counter err(%ld)\n", > + PTR_ERR(flow_counter)); > + err = PTR_ERR(flow_counter); > + goto out_counter_err; > + } > + accel_psp->rx_auth_fail_counter = flow_counter; > + > + flow_counter = mlx5_fc_create(mdev, false); > + if (IS_ERR(flow_counter)) { > + mlx5_core_warn(mdev, > + "fail to create psp rx error flow counter err(%ld)\n", > + PTR_ERR(flow_counter)); > + err = PTR_ERR(flow_counter); > + goto out_auth_fail_counter_err; > + } > + accel_psp->rx_err_counter = flow_counter; > + > + flow_counter = mlx5_fc_create(mdev, false); > + if (IS_ERR(flow_counter)) { > + mlx5_core_warn(mdev, > + "fail to create psp rx auth fail flow counter err(%ld)\n", > + PTR_ERR(flow_counter)); Coccicheck sayeth (5x): drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c: WARNING: Consider using %pe to print PTR_ERR() That's %pe, flow_counter instead of %d, PTR_ERR(flow_counter) -- pw-bot: cr