Thread (1 message) 1 message, 1 author, 2011-07-15

Re: [PATCH 03/10] net: add APIs for manipulating skb page fragments.

From: Michał Mirosław <hidden>
Date: 2011-07-15 22:34:36
Also in: linux-nfs

2011/7/15 Ian Campbell [off-list ref]:
[...]
+static inline dma_addr_t skb_frag_pci_map(struct pci_dev *hwdev,
+                                         const skb_frag_t *frag,
+                                         unsigned long offset,
+                                         size_t size,
+                                         int direction)
+
+{
+       return pci_map_page(hwdev, __skb_frag_page(frag),
+                           frag->page_offset + offset, size, direction);
+}
You can get rid of this one, as drivers should be converted to generic
DMA API instead. The change is only in passing &pci_dev->dev instead
of pci_dev.

Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help