lwip: rework according review comments

This commit is contained in:
Liu Zhi Fu
2017-01-05 12:22:49 +08:00
parent be994740b4
commit d98b99f4f0
5 changed files with 14 additions and 7 deletions

View File

@@ -72,8 +72,10 @@ ethernet_input(struct pbuf *p, struct netif *netif)
s16_t ip_hdr_offset = SIZEOF_ETH_HDR;
#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */
#ifdef ESP_PERF
if (p->len > DBG_PERF_FILTER_LEN) DBG_PERF_PATH_SET(DBG_PERF_DIR_RX, DBG_PERF_POINT_LWIP_IN);
#if ESP_PERF
if (p->len > DBG_PERF_FILTER_LEN) {
DBG_PERF_PATH_SET(DBG_PERF_DIR_RX, DBG_PERF_POINT_LWIP_IN);
}
#endif
if (p->len <= SIZEOF_ETH_HDR) {