summaryrefslogtreecommitdiffstats
path: root/net/dcb
diff options
context:
space:
mode:
authorStephen Hemminger2012-06-21 04:15:10 +0200
committerDavid S. Miller2012-06-22 00:04:21 +0200
commitf73332fc39e35a6ac14f892390adcd34a63b00d3 (patch)
tree13d16f5bbd53ed960f408a5e97bf189f6099db85 /net/dcb
parenttcp: Validate route interface in early demux. (diff)
downloadkernel-qcow2-linux-f73332fc39e35a6ac14f892390adcd34a63b00d3.tar.gz
kernel-qcow2-linux-f73332fc39e35a6ac14f892390adcd34a63b00d3.tar.xz
kernel-qcow2-linux-f73332fc39e35a6ac14f892390adcd34a63b00d3.zip
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 <shemminger@vyatta.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
0 files changed, 0 insertions, 0 deletions