aboutsummaryrefslogtreecommitdiffstats
path: root/src/framework/hal/hal.c
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 /src/framework/hal/hal.c
parent9d488c4706a20a12554b9050d9b3313f8f67789d (diff)
Feat: HAL decoupling with DPDK
Change-Id: I62c60117e63e75793c1348b6852eed6753915077 Signed-off-by: nanger <zhenyinan@huawei.com>
Diffstat (limited to 'src/framework/hal/hal.c')
-rw-r--r--src/framework/hal/hal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/framework/hal/hal.c b/src/framework/hal/hal.c
index 1adf274..545c759 100644
--- a/src/framework/hal/hal.c
+++ b/src/framework/hal/hal.c
@@ -31,8 +31,6 @@ static char* hal_invalid_str_script[] = {"&&", "||", ">>", "${", ";;", "/./", "/
static char* hal_invalid_str_script_begin[] = {"./", "../"};
-extern const netif_ops_t dpdk_netif_ops;
-
static hal_hdl_t hal_invaldi_hdl = {.id = -1};
static const netif_ops_t* netif_ops_table[HAL_DRV_MAX];
@@ -598,7 +596,7 @@ hal_get_capability (hal_hdl_t hdl, hal_netif_capa_t * info)
*****************************************************************************/
uint16_t
hal_recv_packet (hal_hdl_t hdl, uint16_t queue_id,
- struct common_mem_mbuf **rx_pkts, uint16_t nb_pkts)
+ hal_mbuf_t ** rx_pkts, uint16_t nb_pkts)
{
netif_inst_t *inst;
@@ -627,7 +625,7 @@ hal_recv_packet (hal_hdl_t hdl, uint16_t queue_id,
*****************************************************************************/
uint16_t
hal_send_packet (hal_hdl_t hdl, uint16_t queue_id,
- struct common_mem_mbuf ** tx_pkts, uint16_t nb_pkts)
+ hal_mbuf_t ** tx_pkts, uint16_t nb_pkts)
{
netif_inst_t *inst;