projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c1e51a
)
mlx4_en: remove sparse errors
author
Eric Dumazet
<
[email protected]
>
Mon, 5 Mar 2012 05:01:14 +0000
(
05:01
+0000)
committer
David S. Miller
<
[email protected]
>
Mon, 5 Mar 2012 21:42:45 +0000
(16:42 -0500)
Fix new sparse errors introduced in commit
6221217199
(mlx4_en: dont
change mac_header on xmit)
Reported-by: Or Gerlitz <
[email protected]
>
Signed-off-by: Eric Dumazet <
[email protected]
>
Cc: Yevgeny Petrilin <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/en_tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/en_tx.c
b/drivers/net/ethernet/mellanox/mlx4/en_tx.c
index 2fd51405a509cfa5c296f91184e217755377c840..50b3fa5212eddf352489f6a6d1a0cf7283673e84 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/en_tx.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/en_tx.c
@@
-686,8
+686,8
@@
netdev_tx_t mlx4_en_xmit(struct sk_buff *skb, struct net_device *dev)
/* Copy dst mac address to wqe */
ethh = (struct ethhdr *)skb->data;
- tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((
u
16 *)ethh->h_dest);
- tx_desc->ctrl.imm = get_unaligned((
u
32 *)(ethh->h_dest + 2));
+ tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((
__be
16 *)ethh->h_dest);
+ tx_desc->ctrl.imm = get_unaligned((
__be
32 *)(ethh->h_dest + 2));
/* Handle LSO (TSO) packets */
if (lso_header_size) {
/* Mark opcode as LSO */