VirtualBox

Ignore:
Timestamp:
May 6, 2015 2:26:54 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100076
Message:

VBoxNetFlt/linux: for_each_netdev_rcu() appeared in 2.6.33.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r55682 r55683  
    21752175        struct net_device *dev;
    21762176
     2177#if !defined(for_each_netdev_rcu) /* introduced in 2.6.33 */
     2178        read_lock(&dev_base_lock);
     2179#endif
    21772180        rcu_read_lock();
     2181
     2182#if !defined(for_each_netdev_rcu)
     2183        for_each_netdev(net, dev)
     2184#else
    21782185        for_each_netdev_rcu(net, dev)
     2186#endif
    21792187        {
    21802188            struct in_device *in_dev;
     
    22242232            /* continue */;
    22252233        }
    2226         rcu_read_unlock();
     2234        rcu_read_unlock();
     2235#if !defined(for_each_netdev_rcu)
     2236        read_unlock(&dev_base_lock);
     2237#endif
    22272238
    22282239        Log(("%s: pfnNotifyHostAddress is set, register notifiers\n", __FUNCTION__));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette