aboutsummaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorStephen Hemminger <[email protected]>2012-06-21 02:15:10 +0000
committerDavid S. Miller <[email protected]>2012-06-21 15:04:21 -0700
commitf73332fc39e35a6ac14f892390adcd34a63b00d3 (patch)
tree13d16f5bbd53ed960f408a5e97bf189f6099db85 /include/linux/stackprotector.h
parentfd62e09b946522ec3578412826a81bead06fadf7 (diff)
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 <[email protected]> Tested-by: Phil Schmitt <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions