From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] ixgbe: fix data access on big endian cpu Date: Fri, 10 Jul 2015 16:51:34 +0200 Message-ID: <1774489.naxWROzf8E@xps13> References: <1427786750-30308-1-git-send-email-xuelin.shi@freescale.com> <2601191342CEEE43887BDE71AB97725821415A5B@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: xuelin.shi@freescale.com Return-path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id 9D59AC3B4 for ; Fri, 10 Jul 2015 16:52:45 +0200 (CEST) Received: by wicmv11 with SMTP id mv11so16034397wic.1 for ; Fri, 10 Jul 2015 07:52:45 -0700 (PDT) In-Reply-To: <2601191342CEEE43887BDE71AB97725821415A5B@irsmsx105.ger.corp.intel.com> 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" Xuelin, have you given up with that patch? 2015-04-14 23:11, Ananyev, Konstantin: > From: xuelin.shi@freescale.com [mailto:xuelin.shi@freescale.com] > > txd->read.olinfo_status = > > - rte_cpu_to_le_32(olinfo_status); > > + rte_cpu_to_le_32(olinfo_status); > > + > > Not sure, what had changed here? > > @@ -2293,7 +2314,8 @@ ixgbe_dev_rx_queue_count(struct rte_eth_dev *dev, uint16_t rx_queue_id) > > rxdp = &(rxq->rx_ring[rxq->rx_tail]); > > > > while ((desc < rxq->nb_rx_desc) && > > - (rxdp->wb.upper.status_error & IXGBE_RXDADV_STAT_DD)) { > > + (rte_le_to_cpu_32(rxdp->wb.upper.status_error) & > > + IXGBE_RXDADV_STAT_DD)) { > > Why not ' rxdp->wb.upper.status_error & rte_cpu_to_le_32(IXGBE_RXDADV_STAT_DD)'? > To keep it consistent with rest of the changes?