[spp] [PATCH 3/6] spp_vf:replacement of rte_eth_dev_attach()
x-fn-spp at sl.ntt-tx.co.jp
x-fn-spp at sl.ntt-tx.co.jp
Wed Nov 7 06:07:29 CET 2018
From: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
Replace rte_eth_dev_attach() with attach() for vf.
Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki at po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki at lab.ntt.co.jp>
---
src/vf/spp_vf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c
index 2a77ec6..425b88c 100644
--- a/src/vf/spp_vf.c
+++ b/src/vf/spp_vf.c
@@ -222,9 +222,9 @@ add_vhost_pmd(int index, int client)
sprintf(devargs, "%s,iface=%s,queues=%d,client=%d",
name, iface, nr_queues, client);
- ret = rte_eth_dev_attach(devargs, &vhost_port_id);
+ ret = attach(devargs, &vhost_port_id);
if (unlikely(ret < 0)) {
- RTE_LOG(ERR, APP, "rte_eth_dev_attach error. (ret = %d)\n",
+ RTE_LOG(ERR, APP, "attach error. (ret = %d)\n",
ret);
return ret;
}
--
2.18.0
More information about the spp
mailing list