From: Tetsuya Mukawa <mukawa@igel.co.jp>
To: "Xie, Huawei" <huawei.xie@intel.com>,
Rich Lane <rich.lane@bigswitch.com>
Cc: "nakajima.yoshihiro@lab.ntt.co.jp"
<nakajima.yoshihiro@lab.ntt.co.jp>,
"zhbzg@huawei.com" <zhbzg@huawei.com>,
"mst@redhat.com" <mst@redhat.com>, "dev@dpdk.org" <dev@dpdk.org>,
"oscar.zhangbo@huawei.com" <oscar.zhangbo@huawei.com>,
"gaoxiaoqiu@huawei.com" <gaoxiaoqiu@huawei.com>,
"ann.zhuangyanying@huawei.com" <ann.zhuangyanying@huawei.com>,
"zhoujingbin@huawei.com" <zhoujingbin@huawei.com>,
"guohongzhen@huawei.com" <guohongzhen@huawei.com>
Subject: Re: [dpdk-dev] [RFC PATCH 0/2] Virtio-net PMD Extension to work on host.
Date: Fri, 20 Nov 2015 11:35:34 +0900 [thread overview]
Message-ID: <564E86F6.8030904@igel.co.jp> (raw)
In-Reply-To: <C37D651A908B024F974696C65296B57B4B19E5E5@SHSMSX101.ccr.corp.intel.com>
On 2015/11/20 11:00, Xie, Huawei wrote:
> On 11/20/2015 2:16 AM, Rich Lane wrote:
>> What's the reason for using qemu as a middleman? Couldn't the new PMD
>> itself open /dev/vhost-net or the vhost-user socket and send the commands
>> to set up virtqueues? That was the approach taken by Jianfeng's earlier RFC.
> Rich:
> Our initial POC also has a device simulation layer, but it is linked
> with the DPDK driver as a library.
> As i created that device simulation based on lkvm, and it takes too much
> effort to rewrite it from scratch, so we decide to release a simple
> version without device simulation first.
> Without device simulation, The PMD is pretty simple, standalone, no
> dependency to qtest process.
> With device simulation, we could easily implement other virtio device in
> DPDK easily, like virtio-crypt.
Hi Rich and Xie,
Probably, how to prepare virtio-net device is the difference between
Jianfeng's RFC and our RFC.
The reason why I choose this approach is below.
1. Ease of maintenance
If we have our virtio-net device, we need to spend time to maintain it.
And QEMU virtio-net code is more tested by more virtio-net drivers and
more users. As a result, it should have less bugs.
Also, If we uses QEMU virtio-net code, we only need to maintain QTest
related implementation.
Anyway, QTest is very stable.
Probably we have bugs first, but later, we don't need to maintain it so
much.
2. Extendability
The virtio-net and vhost specification will be extended in the future.
If we have own implementation, we need to maintain more codes.
> Maybe anyway we provide the simple implementation option, for customers
> who don't like the extra complexity to launch a secondary process in
> their container.
> [...]
>
>
For example, for the user who is OK to invoke 2 processes in same
container, just prepare shell script that invokes QTest process and
vhost-user backend process will be enough.
For the users who doesn't want to invoke 2 processes in one container,
anyway they use some kind of orchestration tool, so invoking one more
process/container is not difficult.
I guess the invoking and connecting multiple processes over containers
may not be something special for container users.
(like deploying load balancer, web server and DB)
Tetsuya
next prev parent reply other threads:[~2015-11-20 2:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 10:57 Tetsuya Mukawa
2015-11-19 10:57 ` [dpdk-dev] [RFC PATCH 1/2] EAL: Add new EAL "--shm" option Tetsuya Mukawa
2015-12-16 8:37 ` [dpdk-dev] [PATCH v1 0/2] Virtio-net PMD Extension to work on host Tetsuya Mukawa
2015-12-16 8:37 ` [dpdk-dev] [PATCH v1 1/2] EAL: Add new EAL "--contig-mem" option Tetsuya Mukawa
2015-12-16 8:37 ` [dpdk-dev] [PATCH v1 2/2] virtio: Extend virtio-net PMD to support container environment Tetsuya Mukawa
2015-12-28 11:57 ` Pavel Fedin
2016-01-06 3:57 ` Tetsuya Mukawa
2016-01-06 5:56 ` Tan, Jianfeng
2016-01-06 7:27 ` Tetsuya Mukawa
2015-12-24 14:05 ` [dpdk-dev] [PATCH v1 0/2] Virtio-net PMD Extension to work on host Tan, Jianfeng
2015-12-28 11:06 ` Tetsuya Mukawa
2016-01-06 3:57 ` Tetsuya Mukawa
2016-01-06 5:42 ` Tan, Jianfeng
2016-01-06 7:35 ` Tetsuya Mukawa
2016-01-11 5:31 ` Tan, Jianfeng
2015-11-19 10:57 ` [dpdk-dev] [RFC PATCH 2/2] virtio: Extend virtio-net PMD to support container environment Tetsuya Mukawa
2015-11-19 18:16 ` [dpdk-dev] [RFC PATCH 0/2] Virtio-net PMD Extension to work on host Rich Lane
2015-11-20 2:00 ` Xie, Huawei
2015-11-20 2:35 ` Tetsuya Mukawa [this message]
2015-11-20 2:53 ` Tetsuya Mukawa
2015-12-28 5:15 ` Qiu, Michael
2015-12-28 11:06 ` Tetsuya Mukawa
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=564E86F6.8030904@igel.co.jp \
--to=mukawa@igel.co.jp \
--cc=ann.zhuangyanying@huawei.com \
--cc=dev@dpdk.org \
--cc=gaoxiaoqiu@huawei.com \
--cc=guohongzhen@huawei.com \
--cc=huawei.xie@intel.com \
--cc=mst@redhat.com \
--cc=nakajima.yoshihiro@lab.ntt.co.jp \
--cc=oscar.zhangbo@huawei.com \
--cc=rich.lane@bigswitch.com \
--cc=zhbzg@huawei.com \
--cc=zhoujingbin@huawei.com \
/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).