]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
netdev: add rcu annotations to receive handler hook
authorstephen hemminger <shemminger@vyatta.com>
Mon, 15 Nov 2010 06:38:12 +0000 (06:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2010 19:13:17 +0000 (11:13 -0800)
Suggested by Eric's bridge RCU changes.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index fccb11f879e5dd2f5dfe64c537ebe96272a5d477..b45c1b8b1d19961b73a146e0e43b732705a2b322 100644 (file)
@@ -994,8 +994,8 @@ struct net_device {
        unsigned int            real_num_rx_queues;
 #endif
 
-       rx_handler_func_t       *rx_handler;
-       void                    *rx_handler_data;
+       rx_handler_func_t __rcu *rx_handler;
+       void __rcu              *rx_handler_data;
 
        struct netdev_queue __rcu *ingress_queue;