]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:40:47 +0000 (16:40 -0700)
Orabug: 23177316

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>
(cherry picked from commit d469251bfd06d15289c9dd5dd60b8ebf65785b03)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index fb07e223cae771cce6ff8e9bf51837237c3094b6..daebc129dd86a57c01ff1c2e6ec59869129565c5 100644 (file)
@@ -1484,7 +1484,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 */