benchmark

This commit is contained in:
Carl-Benedikt Krüger 2011-07-05 14:32:29 +02:00
parent fa8616dfeb
commit 1f80ddb613

View file

@ -1063,9 +1063,14 @@ static void mmnif_rx(struct netif* netif)
drop_packet:
/* packet is lost so gather stats and leave the rx handler*/
mmnif->rx_buff->pos++;
mmnif->rx_buff->queued--;
LINK_STATS_INC(link.drop);
mmnif_lock_rx_hdr(own_ip_address & 0xFF);
mmnif->rx_buff->pos++;
mmnif->rx_buff->queued--;
mmnif_unlock_rx_hdr(own_ip_address & 0xFF);
LINK_STATS_INC(link.drop);
mmnif->stats.rx_err++;
return;
}