Thread (10 messages) 10 messages, 3 authors, 2025-09-03

Re: [PATCH net-next v14 4/5] net: ti: icssm-prueth: Adds link detection, RX and TX support.

From: Parvathi Pudi <parvathi@couthit.com>
Date: 2025-08-28 17:12:39
Also in: linux-arm-kernel, linux-devicetree, lkml

Hi,
On Fri, 22 Aug 2025 20:09:16 +0530 Parvathi Pudi wrote:
quoted
+	struct net_device_stats *ndevstats;
quoted
+	ndevstats = &emac->ndev->stats;
Please don't use netdev stats, quoting the header:

struct net_device_stats	stats; /* not used by modern drivers */

Store the counters you need in driver's private struct and implement
.ndo_get_stats64
sure, we will verify and use the suggested approach.
quoted
+	if (!pkt_info->sv_frame) {
sv_frame seems to always be false at this stage?
Maybe delete this diff if that's the case, otherwise it feels like
the skb_free below should be accompanied by some stat increment.
Yes, We will remove this for now.
quoted
+		skb_put(skb, actual_pkt_len);
+
+		/* send packet up the stack */
+		skb->protocol = eth_type_trans(skb, ndev);
+		netif_receive_skb(skb);
+	} else {
+		dev_kfree_skb_any(skb);
+	}
The rest LGTM.

Thanks and Regards
Parvathi.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help