ixgbe: Correct handling of any outer UDP checksum setting
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 4 Dec 2015 19:26:43 +0000 (11:26 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 8 Jan 2016 12:06:49 +0000 (04:06 -0800)
If an outer UDP checksum is set, pass the skb up with CHECKSUM_NONE
so that the stack will check the checksum. Do not increment an
error counter, because we don't know that there is an actual error.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index ea9537d0e63a9ddfbb4d2dfd4e19da197d9768fd..a12f93dd860290d02306d10d245450cbe5a78922 100644 (file)
@@ -1483,7 +1483,7 @@ static inline void ixgbe_rx_checksum(struct ixgbe_ring *ring,
                        return;
 
                if (ixgbe_test_staterr(rx_desc, IXGBE_RXDADV_ERR_OUTERIPER)) {
-                       ring->rx_stats.csum_err++;
+                       skb->ip_summed = CHECKSUM_NONE;
                        return;
                }
                /* If we checked the outer header let the stack know */