hv: netvsc: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 5 Oct 2011 00:28:49 +0000 (00:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2011 21:36:00 +0000 (17:36 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Abhishek Kane <v-abkane@microsoft.com>
Cc: devel@driverdev.osuosl.org
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/hv/netvsc_drv.c

index bfd4c81c410f3774636f545b19ba09682df998d6..58792aefc8d3ae39fd65fa80db1a1f2e891f28da 100644 (file)
@@ -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;
        }