From: Jeff Kirsher on 3 May 2010 16:50 On Sun, May 2, 2010 at 17:46, Joe Perches <joe(a)perches.com> wrote: > There appears to be an off-by-1 defect in the maximum packet size > copied when copybreak is speified in these modules. > > The copybreak module params are specified as: > "Maximum size of packet that is copied to a new buffer on receive" > > The tests are changed from "< copybreak" to "<= copybreak" > and moved into new static functions for readability. > > Signed-off-by: Joe Perches <joe(a)perches.com> > --- > drivers/net/e1000/e1000_main.c | 47 ++++++++++++++++++++--------------- > drivers/net/ixgb/ixgb_main.c | 52 +++++++++++++++++++++++---------------- > 2 files changed, 58 insertions(+), 41 deletions(-) > Thanks Joe, I have added the patch to my queue of patches. -- Cheers, Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [RFC] Exposing TSC "reliability" to userland Next: [stable] ixgbe: Fix return of invalid txq |