mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
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().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user