From: Stefan Kerkmann <s.kerkmann@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
BAREBOX <barebox@lists.infradead.org>
Cc: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Subject: [PATCH 4/4] net: usb: add debug call in the receive path
Date: Thu, 07 Aug 2025 17:53:13 +0200 [thread overview]
Message-ID: <20250807-fix-rtl8152-dropped-packages-v1-4-a71d05b4d166@pengutronix.de> (raw)
In-Reply-To: <20250807-fix-rtl8152-dropped-packages-v1-0-a71d05b4d166@pengutronix.de>
This is the equivalent of the debug call `usbnet_send` and useful to
detect problems in the receive path.
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
---
drivers/net/usb/usbnet.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 6e3ee4d552be36fe6bb052ae29f04a0650b4567d..95862cc5b5962178f2ff5dc9bc30253ec3c3fa2d 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -129,6 +129,9 @@ static void usbnet_recv(struct eth_device *edev)
if (ret)
return;
+ dev_dbg(&edev->dev, "%s: ret: %d len: %d alen: %d\n", __func__, ret,
+ len, alen);
+
if (alen) {
if (info->rx_fixup)
info->rx_fixup(dev, dev->rx_buf, alen);
--
2.39.5
next prev parent reply other threads:[~2025-08-07 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 15:53 [PATCH 0/4] net: usb: r8152: disable rx aggregation Stefan Kerkmann
2025-08-07 15:53 ` [PATCH 1/4] " Stefan Kerkmann
2025-08-07 15:53 ` [PATCH 2/4] net: usb: r8152: print the detected version Stefan Kerkmann
2025-08-07 15:53 ` [PATCH 3/4] net: usb: usbnet: calm noisy debug calls Stefan Kerkmann
2025-08-07 15:53 ` Stefan Kerkmann [this message]
2025-08-08 8:52 ` [PATCH 0/4] net: usb: r8152: disable rx aggregation Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250807-fix-rtl8152-dropped-packages-v1-4-a71d05b4d166@pengutronix.de \
--to=s.kerkmann@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox