ionic: count csum_none when offload enabled
[ Upstream commit f07f9815b7046e25cc32bf8542c9c0bbc5eb6e0e ]
Be sure to count the csum_none cases when csum offload is
enabled.
Fixes: 0f3154e6bc
("ionic: Add Tx and Rx handling")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
60decbe01d
commit
7eefa0b74f
@@ -197,12 +197,11 @@ static void ionic_rx_clean(struct ionic_queue *q,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (likely(netdev->features & NETIF_F_RXCSUM)) {
|
if (likely(netdev->features & NETIF_F_RXCSUM) &&
|
||||||
if (comp->csum_flags & IONIC_RXQ_COMP_CSUM_F_CALC) {
|
(comp->csum_flags & IONIC_RXQ_COMP_CSUM_F_CALC)) {
|
||||||
skb->ip_summed = CHECKSUM_COMPLETE;
|
skb->ip_summed = CHECKSUM_COMPLETE;
|
||||||
skb->csum = (__force __wsum)le16_to_cpu(comp->csum);
|
skb->csum = (__force __wsum)le16_to_cpu(comp->csum);
|
||||||
stats->csum_complete++;
|
stats->csum_complete++;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
stats->csum_none++;
|
stats->csum_none++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user