Messages in this thread | | | Date | Wed, 11 Dec 2013 15:26:22 -0500 (EST) | Subject | Re: [PATCH net V3 1/2] tun: unbreak truncated packet signalling | From | David Miller <> |
| |
From: Jason Wang <jasowang@redhat.com> Date: Wed, 11 Dec 2013 13:08:33 +0800
> Commit 6680ec68eff47d36f67b4351bc9836fd6cba9532 > (tuntap: hardware vlan tx support) breaks the truncated packet signal by nev > return a length greater than iov length in tun_put_user(). This patch fixes > by always return the length of packet plus possible vlan header. Caller can > detect the truncated packet by comparing the return value and the size of io > length. > > Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Signed-off-by: Vlad Yasevich <vyasevich@gmail.com> > Signed-off-by: Jason Wang <jasowang@redhat.com>
Applied and queued up for -stable.
| |