netdev
[Top] [All Lists]

Re: PATCH 1/1: [SKBUFF] move common code to hdlc_type_trans

To: Francois Romieu <romieu@xxxxxxxxxxxxx>
Subject: Re: PATCH 1/1: [SKBUFF] move common code to hdlc_type_trans
From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx>
Date: Fri, 08 Oct 2004 20:07:10 -0300
Cc: "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20041008223611.GA7097@electric-eye.fr.zoreil.com>
Organization: Conectiva S.A.
References: <4165F5B2.5040807@conectiva.com.br> <20041008223611.GA7097@electric-eye.fr.zoreil.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)


Francois Romieu wrote:
Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxx> :
[dscc4.c sets skb->mac.raw after hdlc_type_trans]

Francois, is this really what is intended? I left it as


In the pre-eth_type_trans area, yes :o/ I did not test dscc4 in
a bridged setup. Please fix the driver in your patch.

OK, I'll do that later today, i.e. just remove the skb->mac.raw = skb->data after the call to hdlc_type_trans as it already, like eth_type_trans, sets skb->mac.raw to skb->data prior to calling any hdlc layer type_trans pointer.

For those paying attention to this lowly stuff, what do you
think of renaming all those foo_type_trans to
foo_setup_rx_skb (suggestions for a better name than foo_type_trans
are welcome) and make it set skb->protocol, making it return just
void? I think it makes the whole thing clearer...

- Arnaldo

<Prev in Thread] Current Thread [Next in Thread>