diff options
author | xu.binbin1@zte.com.cn <xu.binbin1@zte.com.cn> | 2016-11-11 21:44:49 +0800 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-11-15 13:55:53 -0800 |
commit | b3722dca6f1b52b0c4a2387e0558b018771ce269 (patch) | |
tree | 95adac8f8fe2e8bd9239e87aaf33406c7e6bd3a6 /lib | |
parent | 4e08f54bf1cee1d26d3a9cb645365dfefbe457b5 (diff) | |
download | openvswitch-b3722dca6f1b52b0c4a2387e0558b018771ce269.tar.gz |
netdev-dpdk: Can't set specified vhost port's admin state
When we set a vhost port's admin state via ovs-appctl, the
application doesn't work and returns the information
"Not a DPDK Interface".
Signed-off-by: Binbin Xu <xu.binbin1@zte.com.cn>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/netdev-dpdk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 49750c3e1..e4a847956 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -391,7 +391,8 @@ struct netdev_rxq_dpdk { int port_id; }; -static int netdev_dpdk_construct(struct netdev *); +static int netdev_dpdk_class_init(void); +static int netdev_dpdk_vhost_class_init(void); int netdev_dpdk_get_vid(const struct netdev_dpdk *dev); @@ -401,7 +402,8 @@ netdev_dpdk_get_ingress_policer(const struct netdev_dpdk *dev); static bool is_dpdk_class(const struct netdev_class *class) { - return class->construct == netdev_dpdk_construct; + return class->init == netdev_dpdk_class_init + || class->init == netdev_dpdk_vhost_class_init; } /* DPDK NIC drivers allocate RX buffers at a particular granularity, typically |