From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Matz Subject: Re: [PATCH 6/7] virtio: fix pci accesses for ppc64 in legacy mode Date: Fri, 13 May 2016 18:34:49 +0200 Message-ID: <57360229.6000803@6wind.com> References: <1463143859-3105-1-git-send-email-olivier.matz@6wind.com> <1463143859-3105-7-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , Chao Zhu To: David Marchand Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 587F55A8C for ; Fri, 13 May 2016 18:34:56 +0200 (CEST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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_cpu_16(*(uint16_t *)dst); >> + break; >> + default: >> + break; >> + } >> +#endif >> } > > I think that, in the original patch, I was handling lengths different > than 1, 2 and 4 ;-) > Idem for write. Oh oh, spotted :) I'll fix that in the v2.