Skip to content

Commit

Permalink
drivers/net/ethernet/tile: use skb_frag_page() API
Browse files Browse the repository at this point in the history
This replaces raw access to the "page" field of the skb_frag_t.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Chris Metcalf committed Dec 3, 2011
1 parent a67ba43 commit 781a5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/tile/tilepro.c
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ static unsigned int tile_net_tx_frags(lepp_frag_t *frags,
for (i = 0; i < sh->nr_frags; i++) {

skb_frag_t *f = &sh->frags[i];
unsigned long pfn = page_to_pfn(f->page);
unsigned long pfn = page_to_pfn(skb_frag_page(f));

/* FIXME: Compute "hash_for_home" properly. */
/* ISSUE: The hypervisor checks CHIP_HAS_REV1_DMA_PACKETS(). */
Expand All @@ -1706,7 +1706,7 @@ static unsigned int tile_net_tx_frags(lepp_frag_t *frags,
/* FIXME: Hmmm. */
if (!hash_default) {
void *va = pfn_to_kaddr(pfn) + f->page_offset;
BUG_ON(PageHighMem(f->page));
BUG_ON(PageHighMem(skb_frag_page(f)));
finv_buffer_remote(va, f->size, 0);
}

Expand Down

0 comments on commit 781a5e9

Please sign in to comment.