[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120621.133807.59441426155221033.davem@davemloft.net>
Date: Thu, 21 Jun 2012 13:38:07 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jeffrey.t.kirsher@...el.com
Cc: shemminger@...tta.com, netdev@...r.kernel.org, gospo@...hat.com,
sassmann@...hat.com
Subject: Re: [net] ixgbe: simplify padding and length checks
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Date: Thu, 21 Jun 2012 05:15:10 -0700
> From: Stephen Hemminger <shemminger@...tta.com>
>
> The check for length <= 0 is bogus because length is unsigned, and network
> stack never sends zero length packets (unless it is totally broken).
>
> The check for really small packets can be optimized (using unlikely)
> and calling skb_pad directly.
>
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
> Tested-by: Phil Schmitt <phillip.j.schmitt@...el.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Not really fixing anything and more of a cleanup, so maybe 'net-next'
instead of 'net' for this guy instead?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists