From: x-fn-spp@sl.ntt-tx.co.jp
To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Cc: spp@dpdk.org
Subject: [spp] [PATCH 2/6] spp_nfv: replacement of rte_eth_dev_attach()
Date: Wed, 7 Nov 2018 14:07:28 +0900 [thread overview]
Message-ID: <201811070507.wA757WdI008874@imss03.silk.ntt-tx.co.jp> (raw)
In-Reply-To: <20181107050732.28344-1-x-fn-spp@sl.ntt-tx.co.jp>
From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Replace rte_eth_dev_attach() with attach() for nfv.
Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki@lab.ntt.co.jp>
---
src/nfv/nfv.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/nfv/nfv.c b/src/nfv/nfv.c
index 05290ed..e53037e 100644
--- a/src/nfv/nfv.c
+++ b/src/nfv/nfv.c
@@ -442,7 +442,7 @@ add_vhost_pmd(int index)
iface = get_vhost_iface_name(index);
sprintf(devargs, "%s,iface=%s,queues=%d", name, iface, nr_queues);
- ret = rte_eth_dev_attach(devargs, &vhost_port_id);
+ ret = attach(devargs, &vhost_port_id);
if (ret < 0)
return ret;
@@ -560,7 +560,7 @@ add_pcap_pmd(int index)
sprintf(devargs,
"%s,rx_pcap=%s,tx_pcap=%s",
name, rx_fpath, tx_fpath);
- ret = rte_eth_dev_attach(devargs, &pcap_pmd_port_id);
+ ret = attach(devargs, &pcap_pmd_port_id);
if (ret < 0)
return ret;
@@ -623,7 +623,7 @@ add_null_pmd(int index)
name = get_null_pmd_name(index);
sprintf(devargs, "%s", name);
- ret = rte_eth_dev_attach(devargs, &null_pmd_port_id);
+ ret = attach(devargs, &null_pmd_port_id);
if (ret < 0)
return ret;
--
2.18.0
next prev parent reply other threads:[~2018-11-07 5:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20181107050732.28344-1-x-fn-spp@sl.ntt-tx.co.jp>
2018-11-07 5:07 ` [spp] [PATCH 1/6] shared: addition of attach() x-fn-spp
2018-11-07 5:07 ` x-fn-spp [this message]
2018-11-07 5:07 ` [spp] [PATCH 3/6] spp_vf:replacement of rte_eth_dev_attach() x-fn-spp
2018-11-07 5:07 ` [spp] [PATCH 4/6] shared: addition of detach() x-fn-spp
2018-11-07 5:07 ` [spp] [PATCH 5/6] spp_nfv: replacement of rte_eth_dev_detach() x-fn-spp
2018-11-07 5:07 ` [spp] [PATCH 6/6] spp_vm: " x-fn-spp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201811070507.wA757WdI008874@imss03.silk.ntt-tx.co.jp \
--to=x-fn-spp@sl.ntt-tx.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=ogawa.yasufumi@lab.ntt.co.jp \
--cc=spp@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).