Commit 18f973af authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

mlx4_en: remove sparse errors

Fix new sparse errors introduced in commit 62212171 (mlx4_en: dont
change mac_header on xmit)
Reported-by: default avatarOr Gerlitz <or.gerlitz@gmail.com>
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Cc: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c1e51a3
......@@ -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((u16 *)ethh->h_dest);
tx_desc->ctrl.imm = get_unaligned((u32 *)(ethh->h_dest + 2));
tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest);
tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2));
/* Handle LSO (TSO) packets */
if (lso_header_size) {
/* Mark opcode as LSO */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment