Patchwork [3/5] netdev: add rcu annotations to receive handler hook

login
register
mail settings
Submitter stephen hemminger
Date Nov. 14, 2010, 9:12 p.m.
Message ID <20101114211515.305479590@vyatta.com>
Download mbox | patch
Permalink /patch/71150/
State Superseded
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Nov. 14, 2010, 9:12 p.m.
Suggested by Eric's bridge RCU changes.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

---
 include/linux/netdevice.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- a/include/linux/netdevice.h	2010-11-14 11:41:53.224298362 -0800
+++ b/include/linux/netdevice.h	2010-11-14 11:42:42.546359900 -0800
@@ -995,8 +995,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;