Re: [PATCH net V2 1/2] tun: unbreak truncated packet signalling

2013-12-10 Thread Jason Wang
On 12/10/2013 11:32 PM, Michael S. Tsirkin wrote: > On Tue, Dec 10, 2013 at 01:49:45PM +0800, Jason Wang wrote: >> > Commit 6680ec68eff47d36f67b4351bc9836fd6cba9532 >> > (tuntap: hardware vlan tx support) breaks the truncated packet signal by >> > nev >> > return a length greater than iov length i

Re: [PATCH net V2 1/2] tun: unbreak truncated packet signalling

2013-12-10 Thread Jason Wang
On 12/11/2013 11:11 AM, David Miller wrote: > You and Michael are still discussing these changes it seems. > > I accidently commited the first version of these patches, but then > immediately reverted that after I saw the followups. > > Let me know when you have something both of you are happy with

Re: [PATCH net V2 1/2] tun: unbreak truncated packet signalling

2013-12-10 Thread David Miller
You and Michael are still discussing these changes it seems. I accidently commited the first version of these patches, but then immediately reverted that after I saw the followups. Let me know when you have something both of you are happy with. Thanks. -- To unsubscribe from this list: send the

Re: [PATCH net V2 1/2] tun: unbreak truncated packet signalling

2013-12-10 Thread Michael S. Tsirkin
On Tue, Dec 10, 2013 at 01:49:45PM +0800, Jason Wang wrote: > 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

[PATCH net V2 1/2] tun: unbreak truncated packet signalling

2013-12-09 Thread Jason Wang
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 p