This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 0c2ee8b492 fix: remove duplicated statistics of upd.drop 0c2ee8b492 is described below commit 0c2ee8b49230168d77b3f4a12d2080822cc6c91d Author: chenchuang <chenchu...@tsingmicro.com> AuthorDate: Sun Nov 17 15:29:19 2024 +0800 fix: remove duplicated statistics of upd.drop The valule of g_netstats.udp.drop has been increased in net_dataevent() function, while it is increased in udp_datahandler(). --- net/udp/udp_callback.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/udp/udp_callback.c b/net/udp/udp_callback.c index 87dd776f0f..390dcbf97c 100644 --- a/net/udp/udp_callback.c +++ b/net/udp/udp_callback.c @@ -82,9 +82,6 @@ static uint16_t udp_datahandler(FAR struct net_driver_s *dev, if (conn->readahead && conn->readahead->io_pktlen > conn->rcvbufs) { netdev_iob_release(dev); -#ifdef CONFIG_NET_STATISTICS - g_netstats.udp.drop++; -#endif return 0; } #endif