drivers/net/ethernet/tile: use skb_frag_page() API
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 1 Dec 2011 17:56:03 +0000 (12:56 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Sat, 3 Dec 2011 20:31:48 +0000 (15:31 -0500)
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>
drivers/net/ethernet/tile/tilepro.c

index 10826d8a2a2df36b3731051b2d4abb504c15ce39..1c0f9facb9b1e864a615a9e70c607e788a38ad8c 100644 (file)
@@ -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(). */
@@ -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);
                }