RE: [PATCH] net: asix: fix bad header length bug

2014-02-07 Thread David Laight
From: Emil Goode > On Fri, Feb 07, 2014 at 10:38:04AM +0100, Bjørn Mork wrote: > > Emil Goode writes: > > > On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: > > >> From: Igor Gnatenko > > >> > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > > >> > > The AX88772B occasionally s

Re: [PATCH] net: asix: fix bad header length bug

2014-02-07 Thread Emil Goode
On Fri, Feb 07, 2014 at 10:38:04AM +0100, Bjørn Mork wrote: > Emil Goode writes: > > On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: > >> From: Igor Gnatenko > >> > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > >> > > The AX88772B occasionally send rx packets that cross urb

Re: [PATCH] net: asix: fix bad header length bug

2014-02-07 Thread Bjørn Mork
Emil Goode writes: > On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: >> From: Igor Gnatenko >> > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: >> > > The AX88772B occasionally send rx packets that cross urb boundaries >> > > and the remaining partial packet is sent with no hea

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: > From: Igor Gnatenko > > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > > > The AX88772B occasionally send rx packets that cross urb boundaries > > > and the remaining partial packet is sent with no header. > > > When the buffer

RE: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread David Laight
From: Igor Gnatenko > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > > The AX88772B occasionally send rx packets that cross urb boundaries > > and the remaining partial packet is sent with no header. > > When the buffer with a partial packet is of less number of octets > > than the value of

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
Hello David, Thank's for the review. On Thu, Feb 06, 2014 at 01:37:12PM +, David Laight wrote: > From: Emil Goode > > The AX88772B occasionally send rx packets that cross urb boundaries > > and the remaining partial packet is sent with no header. > > When the buffer with a partial packet is o

RE: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread David Laight
From: Emil Goode > The AX88772B occasionally send rx packets that cross urb boundaries > and the remaining partial packet is sent with no header. > When the buffer with a partial packet is of less number of octets > than the value of hard_header_len the buffer is discarded by the > usbnet module. T

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Igor Gnatenko
On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > The AX88772B occasionally send rx packets that cross urb boundaries > and the remaining partial packet is sent with no header. > When the buffer with a partial packet is of less number of octets > than the value of hard_header_len the buffer i

[PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
The AX88772B occasionally send rx packets that cross urb boundaries and the remaining partial packet is sent with no header. When the buffer with a partial packet is of less number of octets than the value of hard_header_len the buffer is discarded by the usbnet module. This is causing dropped pack