ionic: count csum_none when offload enabled
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>
This commit is contained in:
parent
76ed8a4a00
commit
f07f9815b7
|
@ -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) {
|
||||
skb->ip_summed = CHECKSUM_COMPLETE;
|
||||
skb->csum = (__force __wsum)le16_to_cpu(comp->csum);
|
||||
stats->csum_complete++;
|
||||
}
|
||||
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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue