mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +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)
|
if (conn->readahead && conn->readahead->io_pktlen > conn->rcvbufs)
|
||||||
{
|
{
|
||||||
netdev_iob_release(dev);
|
netdev_iob_release(dev);
|
||||||
#ifdef CONFIG_NET_STATISTICS
|
|
||||||
g_netstats.udp.drop++;
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user