How to get aligned physical address for skb->data inorder to use DMA for transmission

Viewed 29

In our linux network driver in start_xmit function we get unaligned physical address for skb->data. When I did modulo 16 on physical address of skb->data I got 14. But, our DMA requires address should be 16 byte aligned , so that I can zero copy.

How can we get aligned skb->data for DMA transmission?

0 Answers
Related