Jump to content

network device driver - copy skb data to dma region


Recommended Posts

Guest meerkat
Posted

Hi,

 

Mapping the skb data to dma sometimes includes a bounce buffer (if the skb is out of the dma area)

My dma bitmask is unusual, and so I'm getting a lot of those bounce buffers.

My question is -

Is there a way to make sure that the skb is allocated in my dma region before I get it in the xmit function? This way I can keep the zero-copy in the tx, and avoid the bounce buffer at the same time.

Only 2 options I came up with are:

1. map the skb data (--> bounce buffer)

2. memcpy the skb data and then map it (no more zero-copy)

 

Thanks!

Roy

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...