From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by dpdk.org (Postfix) with ESMTP id 455CFF955 for ; Wed, 18 Jan 2017 11:02:28 +0100 (CET) Received: by mail-lf0-f52.google.com with SMTP id n124so6580215lfd.2 for ; Wed, 18 Jan 2017 02:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xd9QgFT/hwpu9ui5D01L5W7LDMyrxH36eS6YRkg7axo=; b=wP9BZk3ZoTV/4tlsin7kvsKuA02k4Vm7ld8KCKJHgLsND1Hx665t04IJUnzcH4YL3b +2hxkJjZIQRrel6KkklLeBcdpVK6QPnirEHoQYVBFlT7cmp5u641413EaoILYjmCs5tN Ni8X0m8qowMDKbATREgFZ9zq1YUyfTqqmgKdXILsRK+ZtDbBnm7FSbn2r48W1nggb0Qj u8ZxTi7uxzpOWIEdoFlrZ+rKTv7mtiQ1eZv8rZL0Nfh0mtIOnD1MHQQGo6rBVwa9ohh5 eIvIIFUCI6My6XGe7ZDRl7v2M8vT7pEaCSd3bH6O83YJR7ukgWp6Ywrm4AeuFelaIXhf W9qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xd9QgFT/hwpu9ui5D01L5W7LDMyrxH36eS6YRkg7axo=; b=SIcYbujHxuC5AEUsTFK7Jrc9k6yOXGj72BhuziEG1cT8LzPLgE3WLtpVC50W2S2yLs HtwWXR+MZlIuBdSQ18j1Lr9q25mjhhgsxR5q5wr1mage/GG5qAaZ417p3p1aHGHZREhr aiStlobNpCNDdsu6fW/lfjreFIPupFtTOqXlfA+dsCtyuqDfz5bIJijeYR1J8jDq7uuB UC7vkUJVdLtkAKEDWR54DeJoXf0hRe/Tgn13KcI1ds38t9DDKzBhwnQh/A6s5pj05VU9 P8Fe6h/cawOjuh5ZC+3A5RNjNLR40X5hzyUNtZkmMoZfGYNpr9Q7KB0Dz1F1mhic6k3h DxGw== X-Gm-Message-State: AIkVDXIUk+UCGsI9Wubyd1mGZY0VENvpB24nwMUVG63AV5MIM1MNVodt0t+fYd1VmQ5uACd8 X-Received: by 10.25.213.78 with SMTP id m75mr837503lfg.36.1484733747792; Wed, 18 Jan 2017 02:02:27 -0800 (PST) Received: from ping.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id v2sm2043884ljb.44.2017.01.18.02.02.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 02:02:27 -0800 (PST) From: Nelio Laranjeiro To: Thomas Monjalon , dev@dpdk.org Cc: Adrien Mazarguil , Ferruh Yigit Date: Wed, 18 Jan 2017 11:01:52 +0100 Message-Id: <1484733712-26636-1-git-send-email-nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1623789.EVbCba2Cxy@xps13> References: <1623789.EVbCba2Cxy@xps13> Subject: [dpdk-dev] [PATCH] net/mlx5: fix 32bits compilation issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 10:02:28 -0000 Fixes: 02bb06aca20f ("net/mlx5: use vector types to speed up processing") Reported-by: Thomas Monjalon Signed-off-by: Nelio Laranjeiro --- Please squash it in the original patch if possible. --- drivers/net/mlx5/mlx5_rxtx.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 8cf68c5..0177428 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -390,6 +390,7 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) uint32_t length; unsigned int ds = 0; uintptr_t addr; + uint64_t naddr; uint16_t pkt_inline_sz = MLX5_WQE_DWORD_SIZE; uint8_t ehdr[2]; uint8_t cs_flags = 0; @@ -515,12 +516,12 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) ds = 3; use_dseg: /* Add the remaining packet as a simple ds. */ - addr = htonll(addr); + naddr = htonll(addr); *dseg = (rte_v128u32_t){ htonl(length), txq_mp2mr(txq, txq_mb2mp(buf)), - addr, - addr >> 32, + naddr, + naddr >> 32, }; ++ds; if (!segs_n) @@ -554,12 +555,12 @@ mlx5_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n) total_length += length; #endif /* Store segment information. */ - addr = htonll(rte_pktmbuf_mtod(buf, uintptr_t)); + naddr = htonll(rte_pktmbuf_mtod(buf, uintptr_t)); *dseg = (rte_v128u32_t){ htonl(length), txq_mp2mr(txq, txq_mb2mp(buf)), - addr, - addr >> 32, + naddr, + naddr >> 32, }; (*txq->elts)[elts_head] = buf; elts_head = (elts_head + 1) & (elts_n - 1); -- 2.1.4