Re: Freeing skb in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Cross-posted to Linux-net and kernelnewbies (since i wasnt sure where it 
> belonged!)
> 
> Hi,
> 
> What is the correct way of freeing an skb in the kernel?
> I have created a driver through which some packets (skbs) pass. Sometimes 
> due to certain error conditions i just need to get rid of those skbs.
> 
> Presently i am using:
> 
> skb_unlink(skb);
> dev_kfree_skb(skb);

A simple

kfree_skb(skb);

will do the trick.

-- Ulisses

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux