git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vhost: support vhost-user
[dpdk.git]
/
lib
/
librte_vhost
/
vhost_cuse
/
vhost-net-cdev.c
diff --git
a/lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
b/lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
index
e7794b0
..
72609a3
100644
(file)
--- a/
lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
+++ b/
lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
@@
-44,6
+44,7
@@
#include <rte_string_fns.h>
#include <rte_virtio_net.h>
#include <rte_string_fns.h>
#include <rte_virtio_net.h>
+#include "virtio-net-cdev.h"
#include "vhost-net.h"
#include "eventfd_copy.h"
#include "vhost-net.h"
#include "eventfd_copy.h"
@@
-57,7
+58,7
@@
static const char cuse_device_name[] = "/dev/cuse";
static const char default_cdev[] = "vhost-net";
static struct fuse_session *session;
static const char default_cdev[] = "vhost-net";
static struct fuse_session *session;
-st
atic st
ruct vhost_net_device_ops const *ops;
+struct vhost_net_device_ops const *ops;
/*
* Returns vhost_device_ctx from given fuse_req_t. The index is populated later
/*
* Returns vhost_device_ctx from given fuse_req_t. The index is populated later
@@
-247,8
+248,8
@@
vhost_net_ioctl(fuse_req_t req, int cmd, void *arg,
break;
default:
break;
default:
- result =
ops->set_mem_table(ctx
,
-
in_buf,
mem_temp.nregions);
+ result =
cuse_set_mem_table(ctx, in_buf
,
+ mem_temp.nregions);
if (result)
fuse_reply_err(req, EINVAL);
else
if (result)
fuse_reply_err(req, EINVAL);
else