OpenCloudOS-Kernel/drivers/net/ethernet/intel
Stephen Hemminger f73332fc39 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>
2012-06-21 15:04:21 -07:00
..
e1000 e1000: Combining Bitwise OR in one expression. 2012-06-20 01:08:44 -07:00
e1000e e1000e: use more informative logging macros when netdev not yet registered 2012-06-14 03:03:14 -07:00
igb igb: Version bump 2012-06-20 01:36:23 -07:00
igbvf igbvf: fix the bug when initializing the igbvf 2012-04-30 18:54:31 -07:00
ixgb intel: make wired ethernet driver message level consistent (rev2) 2012-03-27 23:29:22 -07:00
ixgbe ixgbe: simplify padding and length checks 2012-06-21 15:04:21 -07:00
ixgbevf ixgbevf: Update version string 2012-05-03 02:38:38 -07:00
Kconfig ixgbe: Hardware Timestamping + PTP Hardware Clock (PHC) 2012-05-09 22:48:51 -07:00
Makefile intel: Move the Intel wired LAN drivers 2011-08-10 20:03:27 -07:00
e100.c e100: enable transmit time stamping. 2012-04-14 02:02:41 -07:00