[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <47AAF20B.1090705@fr.ibm.com>
Date: Thu, 07 Feb 2008 12:56:59 +0100
From: Daniel Lezcano <dlezcano@...ibm.com>
To: David Miller <davem@...emloft.net>
CC: netdev@...r.kernel.org
Subject: Re: [RFC] [IPV4][IPV6][TCP] remove skb->dev NULL assignation in tcp_v[4|6]_rcv
functions
David Miller wrote:
> From: Daniel Lezcano <dlezcano@...ibm.com>
> Date: Thu, 07 Feb 2008 12:17:27 +0100
>
>> Subject: [RFC] remove skb->dev NULL assignation
>>
>> I was trying to figure out why in the tcp_v4_rcv/tcp_v6_rcv function,
>> the skb->dev field is set to NULL. There is certainly a good reason,
>> but I was not able to find it.
>>
>> Is it possible to remove this ?
>>
>> Signed-off-by: Daniel Lezcano <dlezcano@...ibm.com>
>
> It is illegal to reference a device outside of the netif_receive_skb()
> code path without taking a reference to it.
>
> Since we are queueing it to a socket, we have to NULL out the skb->dev
> since thee packets lifetime is being expanded outside of that allowed
> window.
Got it. Thank you very much.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists