[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110915.150822.1432876015378023873.davem@davemloft.net>
Date: Thu, 15 Sep 2011 15:08:22 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: mst@...hat.com
Cc: herbert@...dor.hengli.com.au, eric.dumazet@...il.com,
mirq-linux@...e.qmqm.pl, therbert@...gle.com, jpirko@...hat.com,
jesse@...ira.com, xma@...ibm.com, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH net-2.6] net: copy userspace buffers on device
forwarding
From: "Michael S. Tsirkin" <mst@...hat.com>
Date: Wed, 31 Aug 2011 21:03:29 +0300
> dev_forward_skb loops an skb back into host networking
> stack which might hang on the memory indefinitely.
> In particular, this can happen in macvtap in bridged mode.
> Copy the userspace fragments to avoid blocking the
> sender in that case.
>
> As this patch makes skb_copy_ubufs extern now,
> I also added some documentation and made it clear
> the SKBTX_DEV_ZEROCOPY flag automatically instead
> of doing it in all callers. This can be made into a separate
> patch if people feel it's worth it.
>
> Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists