Skip to content

Commit

Permalink
netdev-dpdk: Can't set specified vhost port's admin state
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Daniele Di Proietto <[email protected]>
  • Loading branch information
pinasterxu authored and ddiproietto committed Nov 15, 2016
1 parent 4e08f54 commit b3722dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/netdev-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit b3722dc

Please sign in to comment.