* [PATCH] drivers/net/ethernet/tile: use skb_frag_page() API
@ 2011-12-01 17:56 Chris Metcalf
2011-12-01 18:31 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Chris Metcalf @ 2011-12-01 17:56 UTC (permalink / raw)
To: linux-kernel, netdev
This replaces raw access to the "page" field of the skb_frag_t.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
---
drivers/net/ethernet/tile/tilepro.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/tile/tilepro.c b/drivers/net/ethernet/tile/tilepro.c
index 10826d8..1c0f9fa 100644
--- a/drivers/net/ethernet/tile/tilepro.c
+++ b/drivers/net/ethernet/tile/tilepro.c
@@ -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);
}
--
1.6.5.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers/net/ethernet/tile: use skb_frag_page() API
2011-12-01 17:56 [PATCH] drivers/net/ethernet/tile: use skb_frag_page() API Chris Metcalf
@ 2011-12-01 18:31 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-12-01 18:31 UTC (permalink / raw)
To: cmetcalf; +Cc: linux-kernel, netdev
From: Chris Metcalf <cmetcalf@tilera.com>
Date: Thu, 1 Dec 2011 12:56:03 -0500
> This replaces raw access to the "page" field of the skb_frag_t.
>
> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Please merge these changes via your Tile tree, you can add my:
Acked-by: David S. Miller <davem@davemloft.net>
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-01 18:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 17:56 [PATCH] drivers/net/ethernet/tile: use skb_frag_page() API Chris Metcalf
2011-12-01 18:31 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).