Commit f07f9815 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller
Browse files

ionic: count csum_none when offload enabled



Be sure to count the csum_none cases when csum offload is
enabled.

Fixes: 0f3154e6 ("ionic: Add Tx and Rx handling")
Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76ed8a4a
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -274,12 +274,11 @@ static void ionic_rx_clean(struct ionic_queue *q,
		}
	}

	if (likely(netdev->features & NETIF_F_RXCSUM)) {
		if (comp->csum_flags & IONIC_RXQ_COMP_CSUM_F_CALC) {
	if (likely(netdev->features & NETIF_F_RXCSUM) &&
	    (comp->csum_flags & IONIC_RXQ_COMP_CSUM_F_CALC)) {
		skb->ip_summed = CHECKSUM_COMPLETE;
		skb->csum = (__force __wsum)le16_to_cpu(comp->csum);
		stats->csum_complete++;
		}
	} else {
		stats->csum_none++;
	}