[dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops

2015-12-30 Thread Yuanhan Liu
On Tue, Dec 29, 2015 at 11:31:35AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yuanhan Liu > > Sent: Thursday, December 10, 2015 11:54 AM > > To: dev at dpdk.org > > Subject: [dpd

[dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops

2015-12-29 Thread Tan, Jianfeng
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yuanhan Liu > Sent: Thursday, December 10, 2015 11:54 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops > > Introduce struct virtio_p

[dpdk-dev] [PATCH 2/6] virtio: introduce struct virtio_pci_ops

2015-12-10 Thread Yuanhan Liu
Introduce struct virtio_pci_ops, to let legacy virtio (v0.95) and modern virtio (1.0) have different implementation regarding to a specific pci action, such as read host status. With that, this patch reimplements all exported pci functions, in a way like: vtpci_foo_bar(struct virtio_hw *h