X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Ftep_termination%2Fmain.h;h=8ed817d46499f559b214636f8bd80c28a251cc72;hb=ca79b7f332760fbebca892534e7de62e69a12eb7;hp=f786640a0956e3c3858ec7118aa5c610ca616734;hpb=16ae8abe1cb8b545d4ca5cdee0e3db32c6b8b498;p=dpdk.git diff --git a/examples/tep_termination/main.h b/examples/tep_termination/main.h index f786640a09..8ed817d464 100644 --- a/examples/tep_termination/main.h +++ b/examples/tep_termination/main.h @@ -54,6 +54,8 @@ /* Max number of devices. Limited by the application. */ #define MAX_DEVICES 64 +enum {VIRTIO_RXQ, VIRTIO_TXQ, VIRTIO_QNUM}; + /* Per-device statistics struct */ struct device_statistics { uint64_t tx_total; @@ -72,8 +74,6 @@ struct device_statistics { */ struct vhost_dev { int vid; - /**< Pointer to device created by vhost lib. */ - struct virtio_net *dev; /**< Number of memory regions for gpa to hpa translation. */ uint32_t nregions_hpa; /**< Memory region information for gpa to hpa translation. */ @@ -117,6 +117,6 @@ struct virtio_net_data_ll { }; uint32_t -virtio_dev_rx(struct virtio_net *dev, struct rte_mbuf **pkts, uint32_t count); +virtio_dev_rx(int vid, struct rte_mbuf **pkts, uint32_t count); #endif /* _MAIN_H_ */