Re: [B.A.T.M.A.N.] [PATCHv6 1/2] batman-adv: use vlan_/eth_hdr() instead of skb->data in interface_tx path

Marek Lindner
2014-01-27T07:38:12Z

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]

On Sunday 19 January 2014 22:22:45 Linus Lüssing wrote:
> Our .ndo_start_xmit handler (batadv_interface_tx()) can rely on having
> the skb mac header pointer set correctly since the following commit
> present in kernels >= 3.9:
>
> "net: reset mac header in dev_start_xmit()" (6d1ccff627)
>
> Therefore we can safely use eth_hdr() and vlan_eth_hdr() instead of
> skb->data now, which spares us some ugly type casts.
>
> Signed-off-by: Linus Lüssing <linus.luessing@web.de>
> ---
> bridge_loop_avoidance.c | 2 +-
> compat.h | 11 +++++++++++
> gateway_client.c | 6 +++---
> send.c | 2 +-
> soft-interface.c | 8 ++++----
> 5 files changed, 20 insertions(+), 9 deletions(-)

Applied in revision f9170f2.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]