RE: [PATCH net-next] mlx4_en: dont change mac_header on xmit

2 messages, 2 authors, 2012-02-26 · open the first message on its own page

RE: [PATCH net-next] mlx4_en: dont change mac_header on xmit

From: Eugenia Emantayev <hidden>
Date: 2012-02-26 19:12:19

From: Eric Dumazet [mailto:eric.dumazet@gmail.com]
Sent: Saturday, February 25, 2012 12:51 PM
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 <redacted>
Cc: Yevgeny Petrilin <redacted>
---
Please test this patch before we can commit it, thanks !
Tested and approved, thanks.
--
Eugenia Emantayev

Re: [PATCH net-next] mlx4_en: dont change mac_header on xmit

From: David Miller <davem@davemloft.net>
Date: 2012-02-26 19:27:30

From: Eugenia Emantayev <redacted>
Date: Sun, 26 Feb 2012 19:12:12 +0000
From: Eric Dumazet [mailto:eric.dumazet@gmail.com]
Sent: Saturday, February 25, 2012 12:51 PM
quoted
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 <redacted>
Cc: Yevgeny Petrilin <redacted>
---
Please test this patch before we can commit it, thanks !
Tested and approved, thanks.
--
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help