Re: [dpdk-dev] [PATCH 06/17] vhost: introduce API to fetch negotiated features

2017-03-16 Thread Yuanhan Liu
On Thu, Mar 16, 2017 at 10:22:27AM +0100, Maxime Coquelin wrote: > > > On 03/16/2017 08:35 AM, Yuanhan Liu wrote: > >On Tue, Mar 14, 2017 at 12:02:59PM +0100, Maxime Coquelin wrote: > >>>+uint64_t > >>>+rte_vhost_get_negotiated_features(int vid) > >>>+{ > >>>+ struct virtio_net *dev; > >>>+ > >>

Re: [dpdk-dev] [PATCH 06/17] vhost: introduce API to fetch negotiated features

2017-03-16 Thread Maxime Coquelin
On 03/16/2017 08:35 AM, Yuanhan Liu wrote: On Tue, Mar 14, 2017 at 12:02:59PM +0100, Maxime Coquelin wrote: +uint64_t +rte_vhost_get_negotiated_features(int vid) +{ + struct virtio_net *dev; + + dev = get_device(vid); + if (!dev) + return -1; + + return de

Re: [dpdk-dev] [PATCH 06/17] vhost: introduce API to fetch negotiated features

2017-03-16 Thread Yuanhan Liu
On Tue, Mar 14, 2017 at 12:02:59PM +0100, Maxime Coquelin wrote: > >+uint64_t > >+rte_vhost_get_negotiated_features(int vid) > >+{ > >+struct virtio_net *dev; > >+ > >+dev = get_device(vid); > >+if (!dev) > >+return -1; > >+ > >+return dev->features; > >+} > Are we sure

Re: [dpdk-dev] [PATCH 06/17] vhost: introduce API to fetch negotiated features

2017-03-14 Thread Maxime Coquelin
On 03/03/2017 10:51 AM, Yuanhan Liu wrote: Signed-off-by: Yuanhan Liu --- lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/rte_virtio_net.h | 1 + lib/librte_vhost/vhost.c | 12 3 files changed, 14 insertions(+) diff --git a/lib/librte_vhost/rt

[dpdk-dev] [PATCH 06/17] vhost: introduce API to fetch negotiated features

2017-03-03 Thread Yuanhan Liu
Signed-off-by: Yuanhan Liu --- lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/rte_virtio_net.h | 1 + lib/librte_vhost/vhost.c | 12 3 files changed, 14 insertions(+) diff --git a/lib/librte_vhost/rte_vhost_version.map b/lib/librte_vhost/rte_vho