summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/lwip_src/netif
diff options
context:
space:
mode:
authornanger <zhenyinan@huawei.com>2018-08-20 11:23:31 +0800
committernanger <zhenyinan@huawei.com>2018-08-22 09:52:09 +0800
commit2a0db471858d1143b12ace6a062d37ea509612f7 (patch)
treeedf6b440822445577f4673de8a1bb4b95b1507cf /stacks/lwip_stack/lwip_src/netif
parent9d488c4706a20a12554b9050d9b3313f8f67789d (diff)
Feat: HAL decoupling with DPDK
Change-Id: I62c60117e63e75793c1348b6852eed6753915077 Signed-off-by: nanger <zhenyinan@huawei.com>
Diffstat (limited to 'stacks/lwip_stack/lwip_src/netif')
-rw-r--r--stacks/lwip_stack/lwip_src/netif/spl_hal.c6
1 files changed, 4 insertions, 2 deletions
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)