]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: dont change mac_header on xmit
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 25 Feb 2012 00:51:05 +0000 (00:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Feb 2012 19:22:05 +0000 (14:22 -0500)
commit8717617d481b26def9e7317f78b952d64f4361ce
treeed5285b379efd994078cd2010968361bcc5759b3
parenta4d31f5cc0e25cc0e8baa93daa1e0ffa88d1d4a4
mlx4_en: dont change mac_header on xmit

A driver xmit function is not allowed to change skb without special
care.

mlx4_en_xmit() should not call skb_reset_mac_header() and instead should
use skb->data to access ethernet header.

This removes a dumb test : if (ethh && ethh->h_dest)

Also remove this slow mlx4_en_mac_to_u64() call, we can use
get_unaligned() to get faster code.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c
include/linux/mlx4/qp.h