From: Ian Campbell Date: Wed, 5 Oct 2011 00:28:49 +0000 (+0000) Subject: hv: netvsc: convert to SKB paged frag API. X-Git-Tag: MMI-PSA29.97-13-9~18194^2~143 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6caaf90be1ca9dee045133f43a87fc564149ff91;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git hv: netvsc: convert to SKB paged frag API. Signed-off-by: Ian Campbell Acked-by: Greg Kroah-Hartman Cc: Hank Janssen Cc: Haiyang Zhang Cc: "K. Y. Srinivasan" Cc: Abhishek Kane Cc: devel@driverdev.osuosl.org Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index bfd4c81c410f..58792aefc8d3 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -171,7 +171,7 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { skb_frag_t *f = &skb_shinfo(skb)->frags[i]; - packet->page_buf[i+2].pfn = page_to_pfn(f->page); + packet->page_buf[i+2].pfn = page_to_pfn(skb_frag_page(f)); packet->page_buf[i+2].offset = f->page_offset; packet->page_buf[i+2].len = f->size; }