From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 14AA81F3 for ; Mon, 30 Sep 2013 10:55:13 +0200 (CEST) Received: by mail-wg0-f52.google.com with SMTP id m15so5258412wgh.31 for ; Mon, 30 Sep 2013 01:55:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=DD6OSBNoeCI1YcqLOxl22MxXq/OeEZGm1CIMI6f1z7I=; b=IccWQmFJQinhp5uzOT7nDVshyh0TOvSuVTZ5+rqu9n920IxfSwiD4aS6odDNZgD5Ek G8+jGfJy2tRCLdbBkGZKU+3iqt6Mi8ggAyF6vFQ01+z7wma/rpNaWc48QiuQISTDHsKA NygiCtSfuwmpBHxmFuJa8DIRak3dgR2HgDeYG0I/dC2TvA1oaS17M9Gw26gy5WGjVoq1 tjXG2HewKBnnSEyHp2BMmYVD26+w5M6b0eI+1pgNgjpaXvt3V5BqBXipHwsTVsyM6qRI m5gQ9j8WPOxTf54sp97IwlSbFW07raNvA6xrU92ZM459TV7bV3c3cNrKs20f1W1Vj/oc ORjg== X-Gm-Message-State: ALoCoQk3wCVOHnhM9eylj/HvPzzpnRVrNenfkq0O3U8XJx2esIW8TIyIyHt4G9EN0MvqIEF0ZmyN X-Received: by 10.180.187.51 with SMTP id fp19mr12950351wic.1.1380531355881; Mon, 30 Sep 2013 01:55:55 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id i8sm23835501wib.1.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 30 Sep 2013 01:55:55 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Mon, 30 Sep 2013 10:55:53 +0200 From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 30 Sep 2013 10:55:53 +0200 Message-Id: <1380531353-23482-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 Subject: [dpdk-dev] [PATCH] pmd: use byte ordering functions from dpdk X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2013 08:55:14 -0000 CPU should always use little endian on Intel but it is more consistent to use DPDK macros. Signed-off-by: Thomas Monjalon --- pmd/vmx_user.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pmd/vmx_user.h b/pmd/vmx_user.h index 4a1a95c..7181a3b 100644 --- a/pmd/vmx_user.h +++ b/pmd/vmx_user.h @@ -1,5 +1,5 @@ /* - * Copyright 6WIND 2012-2013, All rights reserved. + * Copyright 2012-2013 6WIND S.A. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -40,12 +40,12 @@ typedef uint32_t u32; typedef uint64_t u64; typedef phys_addr_t dma_addr_t; -#define le16_to_cpu(x) (x) -#define cpu_to_le16(x) (x) -#define le32_to_cpu(x) (x) -#define cpu_to_le32(x) (x) -#define le64_to_cpu(x) (x) -#define cpu_to_le64(x) (x) +#define le16_to_cpu(x) rte_le_to_cpu_16(x) +#define cpu_to_le16(x) rte_cpu_to_le_16(x) +#define le32_to_cpu(x) rte_le_to_cpu_32(x) +#define cpu_to_le32(x) rte_cpu_to_le_32(x) +#define le64_to_cpu(x) rte_le_to_cpu_64(x) +#define cpu_to_le64(x) rte_cpu_to_le_64(x) #define readl(addr) \ (*((volatile uint32_t*)((unsigned long)(addr)))) -- 1.7.10.4