From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3chas3@gmail.com> Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by dpdk.org (Postfix) with ESMTP id D83D99198 for ; Tue, 3 Nov 2015 18:26:22 +0100 (CET) Received: by qkcl124 with SMTP id l124so9362768qkc.3 for ; Tue, 03 Nov 2015 09:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=q/spc/jf4/zC5VX3OkOI3ejbTPYHr/dQ+P72+spV/lI=; b=JjMa3D6vVF+Otw1r7KAkPDf13viC/2p/nz6nWvNXiZdvh0W9ssDO1kSxaYItnfeymy bfsngUk7hBH9v7ne/aHPkNTlL0EEM0f6oPXYfd3mjT3hK3lMUNDWNefPbnmd0FYnXAWA H3P78TpP3hemUoJLrGFpsa+TK2tz0czFzTIr+w4ZsOGf5PEUwU/YF2WJP8Y7IT6vJL/T pyh5Bmr0iphdOZtQJ6rS4+uC8IpPBd7tJpjXfx0xslJyUynuK+QqpDy4mTgODS2Ewz2+ FNsUx9i3WDiDro2nbHP5ql92Ll73IBbHi4MU+r0M7yHir0vp7aXZN7pimmpG4dOFl2qM 6RhQ== X-Received: by 10.55.77.201 with SMTP id a192mr38819502qkb.48.1446571582329; Tue, 03 Nov 2015 09:26:22 -0800 (PST) Received: from foobar.home (pool-71-163-182-126.washdc.fios.verizon.net. [71.163.182.126]) by smtp.gmail.com with ESMTPSA id w50sm10045263qge.45.2015.11.03.09.26.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 09:26:21 -0800 (PST) From: Chas Williams <3chas3@gmail.com> To: dev@dpdk.org Date: Tue, 3 Nov 2015 12:26:16 -0500 Message-Id: <1446571576-28399-1-git-send-email-3chas3@gmail.com> X-Mailer: git-send-email 2.1.0 Subject: [dpdk-dev] [PATCH] bnx2x: tx_start_bd->vlan_or_ethertype is le16 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: Tue, 03 Nov 2015 17:26:23 -0000 Signed-off-by: Chas Williams <3chas3@gmail.com> --- drivers/net/bnx2x/bnx2x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index fed7a06..76444eb 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -2169,7 +2169,8 @@ int bnx2x_tx_encap(struct bnx2x_tx_queue *txq, struct rte_mbuf **m_head, int m_p struct ether_hdr *eh = rte_pktmbuf_mtod(m0, struct ether_hdr *); - tx_start_bd->vlan_or_ethertype = eh->ether_type; + tx_start_bd->vlan_or_ethertype + = rte_cpu_to_le_16(rte_be_to_cpu_16(eh->ether_type)); } } -- 2.1.0