Skip to content

Commit 781a5e9

Browse files
drivers/net/ethernet/tile: use skb_frag_page() API
This replaces raw access to the "page" field of the skb_frag_t. Signed-off-by: Chris Metcalf <[email protected]> Acked-by: David S. Miller <[email protected]>
1 parent a67ba43 commit 781a5e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/tile/tilepro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ static unsigned int tile_net_tx_frags(lepp_frag_t *frags,
16971697
for (i = 0; i < sh->nr_frags; i++) {
16981698

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

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

0 commit comments

Comments
 (0)