mirror of
https://github.com/corundum/corundum.git
synced 2025-02-06 08:38:23 +08:00
Fix RX checksum offloading
This commit is contained in:
parent
3d959c2d4f
commit
559fc54ea5
@ -319,11 +319,8 @@ int mqnic_process_rx_cq(struct net_device *ndev, struct mqnic_cq_ring *cq_ring,
|
|||||||
skb_record_rx_queue(skb, cq_ring->ring_index);
|
skb_record_rx_queue(skb, cq_ring->ring_index);
|
||||||
|
|
||||||
// RX hardware checksum
|
// RX hardware checksum
|
||||||
if ((ndev->features & NETIF_F_RXCSUM) &&
|
if (ndev->features & NETIF_F_RXCSUM)
|
||||||
(skb->protocol == htons(ETH_P_IP) || skb->protocol == htons(ETH_P_IPV6)) &&
|
|
||||||
(skb->len >= 64))
|
|
||||||
{
|
{
|
||||||
|
|
||||||
skb->csum = be16_to_cpu(cpl->rx_csum);
|
skb->csum = be16_to_cpu(cpl->rx_csum);
|
||||||
skb->ip_summed = CHECKSUM_COMPLETE;
|
skb->ip_summed = CHECKSUM_COMPLETE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user