]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/niu.c
p54pci: update receive dma buffers before and after processing
[karo-tx-linux.git] / drivers / net / niu.c
index 781e368329f91efe26389c17e0b293bb4342fcde..2541321bad82f11119db23c4ac7d3a3bed5208f2 100644 (file)
@@ -6589,7 +6589,7 @@ static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr,
                             (ip_proto == IPPROTO_UDP ?
                              TXHDR_CSUM_UDP : TXHDR_CSUM_SCTP));
 
-               start = skb_transport_offset(skb) -
+               start = skb_checksum_start_offset(skb) -
                        (pad_bytes + sizeof(struct tx_pkt_hdr));
                stuff = start + skb->csum_offset;
 
@@ -9917,7 +9917,7 @@ static int niu_suspend(struct pci_dev *pdev, pm_message_t state)
        if (!netif_running(dev))
                return 0;
 
-       flush_scheduled_work();
+       flush_work_sync(&np->reset_task);
        niu_netif_stop(np);
 
        del_timer_sync(&np->timer);