开发者

Can a single page can be used for multiple skbs which are not fragments

开发者 https://www.devze.com 2023-02-21 02:37 出处:网络
I have a networking hardware which does Rx coalescing , in which frames partaining to a nic device are combined and s开发者_运维技巧end as a big chunk ( Greater than mtu) to the driver.

I have a networking hardware which does Rx coalescing , in which frames partaining to a nic device are combined and s开发者_运维技巧end 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?
  3. Is there a mechanism to allocate sgs and map them to a page and after the device does DMA , split this sgs and point to skb and send to the stack

Waiting for the reponses

Thanks pradeep G

0

精彩评论

暂无评论...
验证码 换一张
取 消