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.
|