From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796174178; b=RjxOZ3NDbbV5Wa6yssR9EL59/kIR6nIjl5W+7Sxg6FV96m4Ttlf3XKOj/R5XHRRCI4ri pzdvQVNiYAEOIXZufzm0xd3zSGJpIG0Yind2/LTY510oe4VoX92Ipuz2a8kF79K5CbQUT 47DFDbpilRZ+gATzOS5tftoUC4L4rJGh+cGK3tWoCqm35t6B9DtQpSvvCNBew5amm0Cmn vZ+fj8tNAt7ayD73tw6RqXCbdHbcs+zYx6oG1qJ39f6KdIw4OyQEEoVr3Amq+Fw2xTx6F Wn3H6wyvkXzzFTm1S/QqSomTQdtPp5FB8X2p5pbq9yZfoaYi26dnhf8NzZE0Hkxbo9w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796174178; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=1Hryzoa0vP1T6FK7Vu92uEGrW6cI2z1Pud9jay1vbRQ=; b=K242x9Et+X44m3YVCXDaXgKA1wqdtLpsRW0Mc7KRG8E/1c5EBFkMPe2J1/Ssv+WdkZGR rCRIqczPsQYUBo4rJzpODfO6ugWqmqMM/ivXS8Lxdrt6P+bQu0IY+u0CH+qzWh6gFkrP3 jCTWlT3Y+xfrTTDix+VYkwmJxL7gnrI2F+ruSFTlA0QlHaIPfwDziwWAexUoJ2o21nqT/ O6HOYqfXaMWpZbtrkKPtezh30rccBPgkczmSpZrWpnyjwb4Pye7QOcSRyityLFHPX8C1K /OpOfq4lwbCfqtiLLWAIoAnlOjOv4SGlwD0mK+ML7Qj3W3Ihyf8xuy0/3eVT+PRAmdw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jpA2LNcK; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A8C4606A31A for ; Wed, 2 Dec 2026 01:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jpA2LNcK Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6249B1F00897; Wed, 2 Dec 2026 01:16:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796174178; bh=1Hryzoa0vP1T6FK7Vu92uEGrW6cI2z1Pud9jay1vbRQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=jpA2LNcKmpF426qkXZH0lownTWqov4I4/iOVHeAkfXrAndsTFp0I7njcRDrrijaUG Oz2KQkGIUWBD3CUNur2Yjv7cVK79dUDQGjWMOo0K94qN/Nr6HUvg+EuxrPwZigcQRq VwUxO4VOM2IuNPm1T+KS53X9XZqXz98rVaUf/MQVIfw85/58DsvKFRCafEaqVa5G9n jNy2umJW4dPa/79JACnKXH3eBX4a5K3rhkGEA1rIZKSMsncolZgCQXR0WUYBRKQ1p2 KAMU4vH/8EMB5k74ALqwKOsM0h8h4hg7gGoSvXxiZqdxKxxO37GVLTCpzgSB5JOdUT e0QCLLr0uCMNg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH RFC net-next 04/12] net: enic: expose per-queue XDP and AF_XDP counters Reply-To: sashiko-reviews@lists.linux.dev To: "Satish Kharat" Cc: bpf@vger.kernel.org In-Reply-To: <20261130-enic-xdp-rfc-p1-20261130-v1-4-3be5458c9118@cisco.com> References: <20261130-enic-xdp-rfc-p1-20261130-v1-0-3be5458c9118@cisco.com> <20261130-enic-xdp-rfc-p1-20261130-v1-4-3be5458c9118@cisco.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 01:16:17 +0000 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] net: enic: per-queue XSK packet, byte, and alloc stats in ethtool -S -- commit b7fb77ac6d4bb8b7f60d52b0b1a25ef5f8a5098c Author: Satish Kharat net: enic: expose per-queue XDP and AF_XDP counters This commit adds per-queue XDP and AF_XDP statistics to struct enic_rq_stats and struct enic_wq_stats and exposes them through ethtool -S. > diff --git a/drivers/net/ethernet/cisco/enic/enic_ethtool.c b/drivers/net= /ethernet/cisco/enic/enic_ethtool.c > index 61541fb8db7b7..ca1d9ae27d82f 100644 > --- a/drivers/net/ethernet/cisco/enic/enic_ethtool.c > +++ b/drivers/net/ethernet/cisco/enic/enic_ethtool.c > @@ -51,6 +51,17 @@ static const struct enic_stat enic_per_rq_stats[] =3D { > ENIC_PER_RQ_STAT(napi_repoll), > ENIC_PER_RQ_STAT(no_skb), > ENIC_PER_RQ_STAT(desc_skip), > + ENIC_PER_RQ_STAT(xdp_pass), > + ENIC_PER_RQ_STAT(xdp_drop), > + ENIC_PER_RQ_STAT(xdp_tx), > + ENIC_PER_RQ_STAT(xdp_tx_drops), > + ENIC_PER_RQ_STAT(xdp_redirect), > + ENIC_PER_RQ_STAT(xdp_redirect_drops), > + ENIC_PER_RQ_STAT(xdp_aborted), > + ENIC_PER_RQ_STAT(xdp_invalid), > + ENIC_PER_RQ_STAT(xsk_rx_pkts), > + ENIC_PER_RQ_STAT(xsk_rx_bytes), > + ENIC_PER_RQ_STAT(xsk_fill_empty), > }; > =20 > #define NUM_ENIC_PER_RQ_STATS ARRAY_SIZE(enic_per_rq_stats) > @@ -64,6 +75,10 @@ static const struct enic_stat enic_per_wq_stats[] =3D { > ENIC_PER_WQ_STAT(null_pkt), > ENIC_PER_WQ_STAT(skb_linear_fail), > ENIC_PER_WQ_STAT(desc_full_awake), > + ENIC_PER_WQ_STAT(xsk_tx_pkts), > + ENIC_PER_WQ_STAT(xsk_tx_bytes), > + ENIC_PER_WQ_STAT(xsk_tx_no_room), > + ENIC_PER_WQ_STAT(xsk_tx_completed), > }; [Severity: Medium] Should xsk_rx_pkts, xsk_rx_bytes, xsk_fill_empty, xsk_tx_pkts, and xsk_tx_bytes be reported through standard statistics interfaces instead of ethtool -S? ethtool -S is reserved for driver-private counters without a standard uAPI (Documentation/networking/statistics.rst). Per-queue RX/TX packet, byte, and RX buffer allocation failure counters are covered by netdev_queue_stats_rx and netdev_queue_stats_tx, which enic already implements in enic_get_queue_stats_rx() and enic_get_queue_stats_tx() (and commit bde04d9876c0 ("enic: Report some per queue statistics in ethtool") excluded per-queue packets, bytes, and pp_alloc_fail from ethtool -S for that reason). AF_XDP fill ring empty events are also already tracked by xsk_buff_alloc() in pool->fq->queue_empty_descs and exposed via SOL_XDP XDP_STATISTICS and sock_diag. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130-enic-xdp-r= fc-p1-20261130-v1-0-3be5458c9118@cisco.com?part=3D4