projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4c8d57
)
atl1c: convert to SKB paged frag API.
author
Ian Campbell
<
[email protected]
>
Mon, 29 Aug 2011 23:18:20 +0000
(23:18 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 30 Aug 2011 21:57:59 +0000
(17:57 -0400)
Signed-off-by: Ian Campbell <
[email protected]
>
Cc: Jay Cliburn <
[email protected]
>
Cc: Chris Snook <
[email protected]
>
Cc: Jie Yang <
[email protected]
>
Cc:
[email protected]
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c
index acb4c1098cae8640c8a2d9f59682567f47146433..2b9f925fdfc09d4968979fe27cab633c74137cd2 100644
(file)
--- a/
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
+++ b/
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
@@
-2180,11
+2180,10
@@
static void atl1c_tx_map(struct atl1c_adapter *adapter,
buffer_info = atl1c_get_tx_buffer(adapter, use_tpd);
buffer_info->length = frag->size;
- buffer_info->dma =
- pci_map_page(adapter->pdev, frag->page,
- frag->page_offset,
- buffer_info->length,
- PCI_DMA_TODEVICE);
+ buffer_info->dma = skb_frag_dma_map(&adapter->pdev->dev,
+ frag, 0,
+ buffer_info->length,
+ PCI_DMA_TODEVICE);
ATL1C_SET_BUFFER_STATE(buffer_info, ATL1C_BUFFER_BUSY);
ATL1C_SET_PCIMAP_TYPE(buffer_info, ATL1C_PCIMAP_PAGE,
ATL1C_PCIMAP_TODEVICE);