LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-28-2011, 08:39 PM   #1
pradeepg
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
Sharing a page accross multiple skbs


Hi All,
I have a networking hardware which does Rx coalescing , in which frames partaining to a nic device are combined and send as a big chunk ( Greater than mtu) to the driver.
In the driver i have to split them according to mtu size and need to sent up to the stack.
1) I want to know is there a way to allocate a page so that i can split that after the device DMA's the frame ?
2) Can a single Page can be shared across multiple skbs (not accross frags in a same skb)? If so what special care i need to take which unmapping the page?

Waiting for the reponses

Thanks
pradeep G
 
Old 04-05-2011, 02:43 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Yes, you can write your owner skb manager. You can do anything you want in your skb manager, such as a single page for multiple skbs.
 
Old 04-06-2011, 12:05 AM   #3
pradeepg
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
Yes, you can write your owner skb manager. You can do anything you want in your skb manager, such as a single page for multiple skbs.
THanks for the reply
How do we implement this skb manager ?
 
Old 04-06-2011, 12:12 AM   #4
pradeepg
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
Yes, you can write your owner skb manager. You can do anything you want in your skb manager, such as a single page for multiple skbs.
All i want is how do we write a skb manager so that stack wont free the page which is used by multiple skbs
 
Old 04-06-2011, 02:24 PM   #5
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
For skb memory manager, it is like normal memory manager, allocate and free. The netdev_alloc_skb is used when allocating skb and dev_kfree_skb is used when freeing skb. You can modify these functions to meet your requirement.
 
  


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
Multiple page copies under cups? Rehumanize Linux - Networking 1 08-09-2008 06:04 AM
ubuntu internet sharing via windows xp = BBC News Home Page dfwcomputer Ubuntu 2 10-27-2006 07:53 PM
Sharing Fedora accross two hard drives epoxi Linux - Newbie 2 06-26-2006 10:56 AM
network driver doesn't free kernel skbs.. gsrdemon Linux - Networking 0 10-18-2005 01:55 AM
multiple web page hosting bytebrowser Linux - Networking 4 06-15-2003 03:42 AM

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

All times are GMT -5. The time now is 06:39 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