mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
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
1 changed files with 5 additions and 6 deletions
|
@ -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 a new issue