Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266437
b: refs/heads/master
c: 6a930b9
h: refs/heads/master
i:
  266435: 837979b
v: v3
  • Loading branch information
Ian Campbell authored and David S. Miller committed Oct 5, 2011
1 parent f720ccf commit 091903c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dc3e196ea21e833128d51eb5b788a070fea1f28
refs/heads/master: 6a930b9f163d7e6d9ef692e05616c4ede65038ec
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/chelsio/cxgb3/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,8 +979,8 @@ static inline unsigned int make_sgl(const struct sk_buff *skb,
for (i = 0; i < nfrags; i++) {
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];

mapping = pci_map_page(pdev, frag->page, frag->page_offset,
frag->size, PCI_DMA_TODEVICE);
mapping = skb_frag_dma_map(&pdev->dev, frag, 0, frag->size,
PCI_DMA_TODEVICE);
sgp->len[j] = cpu_to_be32(frag->size);
sgp->addr[j] = cpu_to_be64(mapping);
j ^= 1;
Expand Down Expand Up @@ -2116,7 +2116,7 @@ static void lro_add_page(struct adapter *adap, struct sge_qset *qs,
len -= offset;

rx_frag += nr_frags;
rx_frag->page = sd->pg_chunk.page;
__skb_frag_set_page(rx_frag, sd->pg_chunk.page);
rx_frag->page_offset = sd->pg_chunk.offset + offset;
rx_frag->size = len;

Expand Down

0 comments on commit 091903c

Please sign in to comment.