Re: [dpdk-dev] [PATCH 2/2] eal/bsd: fix the read operation on PCI configuration space

2017-05-08 Thread Bruce Richardson
On Sun, May 07, 2017 at 01:33:34PM +, Tiwei Bie wrote: > Some drivers (such as virtio) may need to read more than 4 bytes > data from PCI configuration space via rte_eal_pci_read_config(). > But it will return with an error on FreeBSD when the expected > data length is bigger than the size of p

[dpdk-dev] [PATCH 2/2] eal/bsd: fix the read operation on PCI configuration space

2017-05-07 Thread Tiwei Bie
Some drivers (such as virtio) may need to read more than 4 bytes data from PCI configuration space via rte_eal_pci_read_config(). But it will return with an error on FreeBSD when the expected data length is bigger than the size of pi.pi_data whose type is u_int32_t. This patch removes this limitati