]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08601a70e6bc5bf5c1be50cabf60871a99f9c1e8
tree812bf8b6a164e43e9eab386cbf332282c736ee44
parentc669b976196f4ee70613bae1b81c00d215beec28
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 aa40a2828e15e7c4f97dd96509be313592dc9c70
(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