git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca26d3b
)
bnx2x: fix little endian conversion in Tx
author
Chas Williams
<3chas3@gmail.com>
Tue, 3 Nov 2015 17:26:16 +0000
(12:26 -0500)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Sun, 6 Dec 2015 23:55:51 +0000
(
00:55
+0100)
tx_start_bd->vlan_or_ethertype is le16
Signed-off-by: Chas Williams <3chas3@gmail.com>
drivers/net/bnx2x/bnx2x.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x.c
b/drivers/net/bnx2x/bnx2x.c
index
fed7a06
..
76444eb
100644
(file)
--- 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));
}
}