Skip to contentSkip to conversation

Question: sk_buff and destructor

DISCUSSION Arun Dharankar 1 participant 1 message Jun 5, 2003

lore
Share & tools
lore
#0 lore raw

Greetings!

One ethernet driver I am working with, allocates sk_buff using dev_alloc_skb to send the received data to network layers above. It also sets the sk_buff->dev field to its own net_device.

If the driver also sets the sk_buff->destructor to be one its
functions: can the sk_buff->dev be guaranteed to be the same as when the destructor is called? I could not find any driver making use of this struct member.

I am attempting to detect an sk_buff leak, almost likely in the driver. Is there any other pointers/ideas I might be able to use to debug this leak? I am using Linux 2.4.20.

Best regards,
-Arun.