[PATCH 2/5] Cut off macvlan_port from net_device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Emelyanov
Date: Monday, October 22, 2007 - 5:34 am

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

---

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 469e04f..c41a5c4 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -703,8 +703,10 @@ struct net_device
 	/* bridge stuff */
 	struct net_bridge_port	*br_port;
 #endif
+#if defined(CONFIG_MACVLAN) || defined(CONFIG_MACVLAN_MODULE)
 	/* macvlan */
 	struct macvlan_port	*macvlan_port;
+#endif
 
 	/* class/net/name entry */
 	struct device		dev;
-- 
1.5.3.4

-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] Diet struct net_device a bit, Pavel Emelyanov, (Mon Oct 22, 5:31 am)
[PATCH 1/5] Cut off br_port fied from net_device, Pavel Emelyanov, (Mon Oct 22, 5:33 am)
[PATCH 2/5] Cut off macvlan_port from net_device, Pavel Emelyanov, (Mon Oct 22, 5:34 am)
[PATCH 3/5] Cut off ax25_ptr from net_device, Pavel Emelyanov, (Mon Oct 22, 5:35 am)
[PATCH 4/5] Cut off ec_ptr from net_device, Pavel Emelyanov, (Mon Oct 22, 5:36 am)
[PATCH 5/5] Cut off dn_ptr from net_device, Pavel Emelyanov, (Mon Oct 22, 5:37 am)
Re: [Devel] [PATCH 1/5] Cut off br_port fied from net_device, Alexey Dobriyan, (Mon Oct 22, 5:49 am)
Re: [Devel] [PATCH 1/5] Cut off br_port fied from net_device, Pavel Emelyanov, (Mon Oct 22, 6:02 am)
Re: [PATCH 0/5] Diet struct net_device a bit, Johannes Berg, (Tue Oct 23, 10:07 am)