sky2.c (0b7877d4eea3f93e3dd941999522bbd8c538cb53) sky2.c (3f42941b5d1d13542b1a755a9e4f633aa72e4d3e)
1/*
2 * New driver for Marvell Yukon 2 chipset.
3 * Based on earlier sk98lin, and skge driver.
4 *
5 * This driver intentionally does not support all the features
6 * of the original driver such as link fail-over and link management because
7 * those should be done at higher levels.
8 *

--- 2480 unchanged lines hidden (view full) ---

2489
2490 skb = netdev_alloc_skb_ip_align(sky2->netdev, length);
2491 if (likely(skb)) {
2492 pci_dma_sync_single_for_cpu(sky2->hw->pdev, re->data_addr,
2493 length, PCI_DMA_FROMDEVICE);
2494 skb_copy_from_linear_data(re->skb, skb->data, length);
2495 skb->ip_summed = re->skb->ip_summed;
2496 skb->csum = re->skb->csum;
1/*
2 * New driver for Marvell Yukon 2 chipset.
3 * Based on earlier sk98lin, and skge driver.
4 *
5 * This driver intentionally does not support all the features
6 * of the original driver such as link fail-over and link management because
7 * those should be done at higher levels.
8 *

--- 2480 unchanged lines hidden (view full) ---

2489
2490 skb = netdev_alloc_skb_ip_align(sky2->netdev, length);
2491 if (likely(skb)) {
2492 pci_dma_sync_single_for_cpu(sky2->hw->pdev, re->data_addr,
2493 length, PCI_DMA_FROMDEVICE);
2494 skb_copy_from_linear_data(re->skb, skb->data, length);
2495 skb->ip_summed = re->skb->ip_summed;
2496 skb->csum = re->skb->csum;
2497 skb->rxhash = re->skb->rxhash;
2498
2497 pci_dma_sync_single_for_device(sky2->hw->pdev, re->data_addr,
2498 length, PCI_DMA_FROMDEVICE);
2499 pci_dma_sync_single_for_device(sky2->hw->pdev, re->data_addr,
2500 length, PCI_DMA_FROMDEVICE);
2501 re->skb->rxhash = 0;
2499 re->skb->ip_summed = CHECKSUM_NONE;
2500 skb_put(skb, length);
2501 }
2502 return skb;
2503}
2504
2505/* Adjust length of skb with fragments to match received data */
2506static void skb_put_frags(struct sk_buff *skb, unsigned int hdr_space,

--- 2701 unchanged lines hidden ---
2502 re->skb->ip_summed = CHECKSUM_NONE;
2503 skb_put(skb, length);
2504 }
2505 return skb;
2506}
2507
2508/* Adjust length of skb with fragments to match received data */
2509static void skb_put_frags(struct sk_buff *skb, unsigned int hdr_space,

--- 2701 unchanged lines hidden ---