LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-25-2010, 11:20 AM   #1
igalch
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
skb buffers free while working with PF_PACKET socket


Hello,

The problem is found, it was a driver issue.

I have a question regarding freeing of skb buffers while forwarding packet from kernel driver via network device to user space process (hostapd) which receives packets by waiting on PF_PACKET RAW socket. The packet L2 header is like Ethernet header but with proprietary protocol type. The user space application successfully receives the packet but skb is not freed. I can track it via vmstat - slab size is increasing while packets are periodically sent from driver via network interface. I suggest skb is to be freed eventually by Linux Networking as there are no other recipients for the skb.
Ethernet header is filled as:
dst = network interface MAC adr
src = tranmitter src MAC adr
type = proprietary

Linux version: 2.6.29
Any suggestion how to cause the system to free skb-s? Where do you advice to put some logs in the stack to trace packet to understand why it is not to get freeing?

Igor

Last edited by igalch; 04-06-2010 at 09:00 AM. Reason: The problem is found in driver.
 
Old 04-06-2010, 01:38 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Moved: This thread is more suitable in Linux-Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 04-06-2010, 09:45 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please don't edit your original posts (or request they be removed) without also posting a reply to explain what is going on.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PF_PACKET socket bind() to loopback interface (lo) cwpetersen Linux - Networking 0 03-17-2009 12:02 PM
How to free a socket???? raga4223688 Linux - Kernel 4 03-29-2007 03:01 AM
group the outgoing skb's into single skb and then send grouped skb. venkatesh111 Linux - Networking 0 04-27-2006 01:05 AM
what is mean by linear socket buffers? linux_lover2005 Linux - Newbie 0 01-02-2005 05:11 AM
unbound PF_PACKET Peterius Programming 0 11-10-2004 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration