tuntap: orphan frags before trying to set tx timestamp
authorJason Wang <jasowang@redhat.com>
Thu, 5 Sep 2013 09:54:00 +0000 (17:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2013 16:44:31 +0000 (12:44 -0400)
commit7bf6630523a4fddcc3e37bc37dadbe0cf2362354
tree812bf8b6a164e43e9eab386cbf332282c736ee44
parent4bfb0513ff203a700f5d17b97b772e8c171549bc
tuntap: orphan frags before trying to set tx timestamp

sock_tx_timestamp() will clear all zerocopy flags of skb which may lead the
frags never to be orphaned. This will break guest to guest traffic when zerocopy
is enabled. Fix this by orphaning the frags before trying to set tx time stamp.

The issue were introduced by commit eda297729171fe16bf34fe5b0419dfb69060f623
(tun: Support software transmit time stamping).

Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c