Re: [dpdk-dev] [PATCH 11/12] net/vhost: support to run in the secondary process

2017-09-20 Thread Yuanhan Liu
On Fri, Aug 25, 2017 at 09:40:51AM +, Jianfeng Tan wrote: > static int > +share_device(int vid) > +{ > + uint32_t i, vring_num; > + int len; > + int fds[8]; > + struct rte_vhost_memory *mem; > + struct vhost_params *params; > + struct rte_vhost_vring vring; > + > +

[dpdk-dev] [PATCH 11/12] net/vhost: support to run in the secondary process

2017-08-25 Thread Jianfeng Tan
Support to run vhost-pmd vdev in the secondary process. We obtain information, like memory regions, kickfd, callfd, through primary/secondary communication channel. And by invoking rte_vhost_set_vring_effective_fd, we can set the kickfd which can be recognized by the secondary process. Signed-off