[dpdk-dev] [PATCH 6/7] virtio: fix pci accesses for ppc64 in legacy mode

2016-05-13 Thread Olivier Matz
Hi David, On 05/13/2016 04:28 PM, David Marchand wrote: >> +#ifdef RTE_ARCH_PPC_64 >> + switch (length) { >> + case 4: >> + *(uint32_t *)dst = rte_be_to_cpu_32(*(uint32_t *)dst); >> + break; >> + case 2: >> + *(uint16_t *)dst = rte_be_to_

[dpdk-dev] [PATCH 6/7] virtio: fix pci accesses for ppc64 in legacy mode

2016-05-13 Thread David Marchand
Hello Olivier, On Fri, May 13, 2016 at 2:50 PM, Olivier Matz wrote: > From: David Marchand > > Although ppc supports both endianesses, qemu supposes that the cpu is > big endian and enforces this for the virtio-net stuff. > > Fix PCI accesses in legacy mode. Only ppc64le is supported at the mome

[dpdk-dev] [PATCH 6/7] virtio: fix pci accesses for ppc64 in legacy mode

2016-05-13 Thread Olivier Matz
From: David Marchand Although ppc supports both endianesses, qemu supposes that the cpu is big endian and enforces this for the virtio-net stuff. Fix PCI accesses in legacy mode. Only ppc64le is supported at the moment. Signed-off-by: David Marchand Signed-off-by: Olivier Matz --- drivers/ne