From 2a0db471858d1143b12ace6a062d37ea509612f7 Mon Sep 17 00:00:00 2001 From: nanger Date: Mon, 20 Aug 2018 11:23:31 +0800 Subject: Feat: HAL decoupling with DPDK Change-Id: I62c60117e63e75793c1348b6852eed6753915077 Signed-off-by: nanger --- stacks/lwip_stack/lwip_src/netif/spl_hal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'stacks/lwip_stack/lwip_src/netif/spl_hal.c') diff --git a/stacks/lwip_stack/lwip_src/netif/spl_hal.c b/stacks/lwip_stack/lwip_src/netif/spl_hal.c index 5f69a9d..c7cfca1 100644 --- a/stacks/lwip_stack/lwip_src/netif/spl_hal.c +++ b/stacks/lwip_stack/lwip_src/netif/spl_hal.c @@ -1470,7 +1470,8 @@ spl_hal_send (struct netif *pnetif) do { sent += - hal_send_packet (pnetifExt->hdl, 0, &(tx_ptks[sent]), tx_num - sent); + hal_send_packet (pnetifExt->hdl, 0, (hal_mbuf_t **) & (tx_ptks[sent]), + tx_num - sent); _retry++; if (_retry > SPL_HAL_SEND_TRY) @@ -1514,7 +1515,8 @@ spl_hal_recv (struct netif *pnetif, u8_t id) return 0; rx_c = - hal_recv_packet (pnetifExt->hdl, 0, spl_hal_pkts[netif_id].rx.pkts, + hal_recv_packet (pnetifExt->hdl, 0, + (hal_mbuf_t **) spl_hal_pkts[netif_id].rx.pkts, PKT_BURST); if (rx_c <= 0) -- cgit 1.2.3-korg