From: Stephen Hemminger Date: Thu, 21 Jun 2012 02:15:10 +0000 (+0000) Subject: ixgbe: simplify padding and length checks X-Git-Tag: v3.6-rc1~125^2~469 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f73332fc39e35a6ac14f892390adcd34a63b00d3;p=pandora-kernel.git ixgbe: simplify padding and length checks 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 Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed