aboutsummaryrefslogtreecommitdiffstats
path: root/src/framework/hal/hal.c
diff options
context:
space:
mode:
authorrainbow_0206 <jiangwenjiang@huawei.com>2018-10-19 17:04:02 +0800
committerrainbow_0206 <jiangwenjiang@huawei.com>2018-10-29 17:03:49 +0800
commit4ed7096d4a4aff47a812a79252edd0834277ee30 (patch)
treeb009b4341f123a69869b507504973a4ab42b7e7a /src/framework/hal/hal.c
parent0e8e4b657d5d388a6ac988b9da97f1f81740a0b0 (diff)
Feat: support vhost-user in lwip stack
Change-Id: I6685fae6dafb4a4ac4f03bd868aa5ca636ce7054 Signed-off-by: rainbow_0206 <jiangwenjiang@huawei.com>
Diffstat (limited to 'src/framework/hal/hal.c')
-rw-r--r--src/framework/hal/hal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/hal/hal.c b/src/framework/hal/hal.c
index 545c759..49b1fb7 100644
--- a/src/framework/hal/hal.c
+++ b/src/framework/hal/hal.c
@@ -312,7 +312,7 @@ hal_get_invalid_hdl ()
Called By :
*****************************************************************************/
hal_hdl_t
-hal_create (const char *name, hal_netif_config_t * conf)
+hal_create (const char *name, const char *nic_type, hal_netif_config_t * conf)
{
int ret = -1;
uint32_t netif_type;
@@ -336,7 +336,7 @@ hal_create (const char *name, hal_netif_config_t * conf)
/*open */
for (netif_type = 0; NULL != netif_ops_table[netif_type]; ++netif_type)
{
- ret = netif_ops_table[netif_type]->open (inst, name);
+ ret = netif_ops_table[netif_type]->open (inst, name, nic_type);
if (0 == ret)
{