~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/net/tile/tilepro.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1658
1658
        while (tile_net_lepp_free_comps(dev, true))
1659
1659
                /* loop */;
1660
1660
 
1661
 
        /* Wipe the EPP queue. */
 
1661
        /* Wipe the EPP queue, and wait till the stores hit the EPP. */
1662
1662
        memset(priv->eq, 0, sizeof(lepp_queue_t));
1663
 
 
1664
 
        /* Evict the EPP queue. */
1665
 
        finv_buffer(priv->eq, EQ_SIZE);
 
1663
        mb();
1666
1664
 
1667
1665
        return 0;
1668
1666
}
1930
1928
        unsigned int len = skb->len;
1931
1929
        unsigned char *data = skb->data;
1932
1930
 
1933
 
        unsigned int csum_start = skb->csum_start - skb_headroom(skb);
 
1931
        unsigned int csum_start = skb_checksum_start_offset(skb);
1934
1932
 
1935
1933
        lepp_frag_t frags[LEPP_MAX_FRAGS];
1936
1934
 
2398
2396
                        struct net_device *dev = tile_net_devs[i];
2399
2397
                        struct tile_net_priv *priv = netdev_priv(dev);
2400
2398
                        unregister_netdev(dev);
2401
 
                        finv_buffer(priv->eq, EQ_SIZE);
 
2399
                        finv_buffer_remote(priv->eq, EQ_SIZE, 0);
2402
2400
                        __free_pages(priv->eq_pages, EQ_ORDER);
2403
2401
                        free_netdev(dev);
2404
2402
                }