Message ID | 200811171344.57410.rusty@rustcorp.com.au |
---|---|
State | Changes Requested, archived |
Headers | show |
From: Rusty Russell <rusty@rustcorp.com.au> Date: Mon, 17 Nov 2008 13:44:57 +1030 > @@ -82,6 +82,16 @@ static void give_a_page(struct virtnet_info *vi, struct > page *page) -E_EMAIL_CLIENT_NEWLINES -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: David Miller <davem@davemloft.net> Date: Sun, 16 Nov 2008 19:45:05 -0800 (PST) > From: Rusty Russell <rusty@rustcorp.com.au> > Date: Mon, 17 Nov 2008 13:44:57 +1030 > > > @@ -82,6 +82,16 @@ static void give_a_page(struct virtnet_info *vi, struct > > page *page) > > -E_EMAIL_CLIENT_NEWLINES I got tired of sitting on my thumbs and waiting for the fixed version of the patch, so I cleared it all out myself and added it to net-next-2.6 Even with the mail client corruption fix this thing didn't even apply to net-next-2.6 :-( -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Monday 17 November 2008 17:10:07 David Miller wrote: > Even with the mail client corruption fix this thing didn't even apply > to net-next-2.6 :-( Assume this is the netdev_priv changes. I'll drop my versions from linux-next to avoid screwing Stephen over. Thanks, Rusty. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Rusty Russell <rusty@rustcorp.com.au> Date: Mon, 17 Nov 2008 17:38:54 +1030 > On Monday 17 November 2008 17:10:07 David Miller wrote: > > Even with the mail client corruption fix this thing didn't even apply > > to net-next-2.6 :-( > > Assume this is the netdev_priv changes. I'll drop my versions from linux-next > to avoid screwing Stephen over. That's, that was the main point of this :-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0196a0d..985271a 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -82,6 +82,16 @@ static void give_a_page(struct virtnet_info *vi, struct page *page) vi->pages = page; } +static void trim_pages(struct virtnet_info *vi, struct sk_buff *skb) +{ + unsigned int i; + + for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) + give_a_page(vi, skb_shinfo(skb)->frags[i].page); + skb_shinfo(skb)->nr_frags = 0; + skb->data_len = 0; +} + static struct page *get_a_page(struct virtnet_info *vi, gfp_t gfp_mask) {