mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
lwip: refractor to esp specific counter
1. Add tcp debug counter 2. Refractor other ESP specific counter
This commit is contained in:
@@ -153,7 +153,7 @@ wlanif_input(struct netif *netif, void *buffer, u16_t len, void* eb)
|
||||
#if (ESP_L2_TO_L3_COPY == 1)
|
||||
p = pbuf_alloc(PBUF_RAW, len, PBUF_RAM);
|
||||
if (p == NULL) {
|
||||
ESP_STATS_INC(esp.wlanif_input_pbuf_fail);
|
||||
ESP_STATS_DROP_INC(esp.wlanif_input_pbuf_fail);
|
||||
esp_wifi_internal_free_rx_buffer(eb);
|
||||
return;
|
||||
}
|
||||
@@ -163,7 +163,7 @@ wlanif_input(struct netif *netif, void *buffer, u16_t len, void* eb)
|
||||
#else
|
||||
p = pbuf_alloc(PBUF_RAW, len, PBUF_REF);
|
||||
if (p == NULL){
|
||||
ESP_STATS_INC(esp.wlanif_input_pbuf_fail);
|
||||
ESP_STATS_DROP_INC(esp.wlanif_input_pbuf_fail);
|
||||
return;
|
||||
}
|
||||
p->payload = buffer;
|
||||
|
Reference in New Issue
Block a user