netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [NET-NEXT PATCH 01/13] ixgbe: fix rx csum return status misinterpretation
@ 2008-08-26 11:26 Jeff Kirsher
  2008-08-26 11:26 ` [NET-NEXT PATCH 02/13] ixgbe: add little endian annotations for sparse Jeff Kirsher
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Jeff Kirsher @ 2008-08-26 11:26 UTC (permalink / raw)
  To: jeff; +Cc: netdev, davem, akpm, Jesse Brandeburg, Jeff Kirsher

From: Jesse Brandeburg <jesse.brandeburg@intel.com>

the driver was misinterpreting rx_csum return value in the descriptor
so occassionally we would indicate an rx_csum error in our stats
when there was none.  This would have no effect on traffic because
we would just hand the packet to the stack anyway without the offload
flag set, but would increase CPU for those packets that needed a recompute.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---

 drivers/net/ixgbe/ixgbe_main.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 53f41b6..b14192f 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -420,14 +420,12 @@ static void ixgbe_receive_skb(struct ixgbe_adapter *adapter,
  * @skb: skb currently being received and modified
  **/
 static inline void ixgbe_rx_checksum(struct ixgbe_adapter *adapter,
-					 u32 status_err,
-					 struct sk_buff *skb)
+                                     u32 status_err, struct sk_buff *skb)
 {
 	skb->ip_summed = CHECKSUM_NONE;
 
-	/* Ignore Checksum bit is set, or rx csum disabled */
-	if ((status_err & IXGBE_RXD_STAT_IXSM) ||
-	    !(adapter->flags & IXGBE_FLAG_RX_CSUM_ENABLED))
+	/* Rx csum disabled */
+	if (!(adapter->flags & IXGBE_FLAG_RX_CSUM_ENABLED))
 		return;
 
 	/* if IP and error */


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-09-03 14:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26 11:26 [NET-NEXT PATCH 01/13] ixgbe: fix rx csum return status misinterpretation Jeff Kirsher
2008-08-26 11:26 ` [NET-NEXT PATCH 02/13] ixgbe: add little endian annotations for sparse Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 03/13] ixgbe: Implement HAVE_SET_RX_MODE Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 04/13] ixgbe: do not update stats twice each receive Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 05/13] ixgbe: Cleanup references to Tx and Rx rings to becommon across the driver Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 06/13] ixgbe: disable flow control by default Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 07/13] ixgbe: Implement Tx Head Writeback Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 08/13] ixgbe: Lock RSS seed, move rx_buf_len to the rx_ring Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 09/13] ixgbe: should not use HW_CSUM, should use IP* flags Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 10/13] ixgbe: update dca to new interface, fix CONFIG_DCA_MODULE Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 11/13] ixgbe: fix bug where lro settings are per ring Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 12/13] ixgbe: fix dca hints going to wrong processor Jeff Kirsher
2008-08-26 11:27 ` [NET-NEXT PATCH 13/13] ixgbe: use different context for tso and offload Jeff Kirsher
2008-09-03 14:03 ` [NET-NEXT PATCH 01/13] ixgbe: fix rx csum return status misinterpretation Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).