Commit 3149a271 authored by Michał Mirosław's avatar Michał Mirosław Committed by David S. Miller

sky2: use __vlan_hwaccel helpers

Signed-off-by: default avatarMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4b17f9fe
...@@ -2485,13 +2485,11 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2, ...@@ -2485,13 +2485,11 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2,
skb->ip_summed = re->skb->ip_summed; skb->ip_summed = re->skb->ip_summed;
skb->csum = re->skb->csum; skb->csum = re->skb->csum;
skb_copy_hash(skb, re->skb); skb_copy_hash(skb, re->skb);
skb->vlan_proto = re->skb->vlan_proto; __vlan_hwaccel_copy_tag(skb, re->skb);
skb->vlan_tci = re->skb->vlan_tci;
pci_dma_sync_single_for_device(sky2->hw->pdev, re->data_addr, pci_dma_sync_single_for_device(sky2->hw->pdev, re->data_addr,
length, PCI_DMA_FROMDEVICE); length, PCI_DMA_FROMDEVICE);
re->skb->vlan_proto = 0; __vlan_hwaccel_clear_tag(re->skb);
re->skb->vlan_tci = 0;
skb_clear_hash(re->skb); skb_clear_hash(re->skb);
re->skb->ip_summed = CHECKSUM_NONE; re->skb->ip_summed = CHECKSUM_NONE;
skb_put(skb, length); skb_put(skb, length);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment