/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright 2019 NXP
+ * Copyright 2018-2021 NXP
*/
#include "pfe_logs.h"
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
+#include <arpa/inet.h>
static int
pfe_hif_alloc_descr(struct pfe_hif *hif)
* results, eth id, queue id from PFE block along with data.
* so we have to provide additional memory for each packet to
* HIF rx rings so that PFE block can write its headers.
- * so, we are giving the data pointor to HIF rings whose
+ * so, we are giving the data pointer to HIF rings whose
* calculation is as below:
- * mbuf->data_pointor - Required_header_size
+ * mbuf->data_pointer - Required_header_size
*
* We are utilizing the HEADROOM area to receive the PFE
* block headers. On packet reception, HIF driver will use
if (rx_status & BDP_CSR_RX_DMA_ACTV)
send_dummy_pkt_to_hif();
- sleep(1);
+ rte_delay_ms(1);
} while (--hif_stop_loop);
if (readl(HIF_RX_STATUS) & BDP_CSR_RX_DMA_ACTV)