2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

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>
This commit is contained in:
xu.binbin1@zte.com.cn
2016-11-11 21:44:49 +08:00
committed by Daniele Di Proietto
parent 4e08f54bf1
commit b3722dca6f

View File

@@ -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