From: Jeff Kirsher <hidden> Date: 2012-06-21 12:15:17
From: Stephen Hemminger <redacted>
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 <redacted>
Tested-by: Phil Schmitt <redacted>
Signed-off-by: Jeff Kirsher <redacted>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2012-06-21 20:38:08
From: Jeff Kirsher <redacted>
Date: Thu, 21 Jun 2012 05:15:10 -0700
From: Stephen Hemminger <redacted>
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 <redacted>
Tested-by: Phil Schmitt <redacted>
Signed-off-by: Jeff Kirsher <redacted>
Not really fixing anything and more of a cleanup, so maybe 'net-next'
instead of 'net' for this guy instead?
From: Jeff Kirsher <hidden> Date: 2012-06-21 21:28:10
On Thu, 2012-06-21 at 13:38 -0700, David Miller wrote:
From: Jeff Kirsher <redacted>
Date: Thu, 21 Jun 2012 05:15:10 -0700
quoted
From: Stephen Hemminger <redacted>
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 <redacted>
Tested-by: Phil Schmitt <redacted>
Signed-off-by: Jeff Kirsher <redacted>
Not really fixing anything and more of a cleanup, so maybe 'net-next'
instead of 'net' for this guy instead?
Yeah, net-next is fine. I just verified that the patch applies cleanly
to net-next as well.
From: David Miller <davem@davemloft.net> Date: 2012-06-21 22:04:54
From: Jeff Kirsher <redacted>
Date: Thu, 21 Jun 2012 14:28:09 -0700
On Thu, 2012-06-21 at 13:38 -0700, David Miller wrote:
quoted
From: Jeff Kirsher <redacted>
Date: Thu, 21 Jun 2012 05:15:10 -0700
quoted
From: Stephen Hemminger <redacted>
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 <redacted>
Tested-by: Phil Schmitt <redacted>
Signed-off-by: Jeff Kirsher <redacted>
Not really fixing anything and more of a cleanup, so maybe 'net-next'
instead of 'net' for this guy instead?
Yeah, net-next is fine. I just verified that the patch applies cleanly
to net-next as well.