XEN dom0 networking assumes dev->master is bond device
and it tries to access bond private structure from dev->master
ptr on receive path. This causes panic.
Following patch removes compat code that is setting master
device.

Signed-off-by: Pravin B Shelar <pshe...@nicira.com>
Bug #18920
---
v1-v2:
Fixed according to comments from Jesse.
---
 datapath/linux/compat/include/linux/netdevice.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/datapath/linux/compat/include/linux/netdevice.h 
b/datapath/linux/compat/include/linux/netdevice.h
index 3f66d3a..cf03821 100644
--- a/datapath/linux/compat/include/linux/netdevice.h
+++ b/datapath/linux/compat/include/linux/netdevice.h
@@ -193,13 +193,12 @@ static inline struct sk_buff *__skb_gso_segment(struct 
sk_buff *skb,
 static inline int netdev_master_upper_dev_link(struct net_device *dev,
                                               struct net_device *upper_dev)
 {
-       return netdev_set_master(dev, upper_dev);
+       return 0;
 }
 
 static inline void netdev_upper_dev_unlink(struct net_device *dev,
                                           struct net_device *upper_dev)
 {
-       netdev_set_master(dev, NULL);
 }
 #endif
 
-- 
1.7.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to