aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-21 03:26:07 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:32 -0500
commit9dfebcc6479c55c001e4bb5fe7cc16b6799c43a7 (patch)
treed933aad54aa6025d0394b48a4a816867c1333e3e /net/8021q/vlan.c
parentaf30151709bcace1ca844d4bb8b7e2e392ff81eb (diff)
[VLAN]: Turn VLAN_DEV_INFO into inline function
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r--net/8021q/vlan.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index ac7963854103..d058c0ef3b6e 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -134,7 +134,7 @@ static void vlan_rcu_free(struct rcu_head *rcu)
134 134
135void unregister_vlan_dev(struct net_device *dev) 135void unregister_vlan_dev(struct net_device *dev)
136{ 136{
137 struct vlan_dev_info *vlan = VLAN_DEV_INFO(dev); 137 struct vlan_dev_info *vlan = vlan_dev_info(dev);
138 struct net_device *real_dev = vlan->real_dev; 138 struct net_device *real_dev = vlan->real_dev;
139 struct vlan_group *grp; 139 struct vlan_group *grp;
140 unsigned short vlan_id = vlan->vlan_id; 140 unsigned short vlan_id = vlan->vlan_id;
@@ -229,7 +229,7 @@ int vlan_check_real_dev(struct net_device *real_dev, unsigned short vlan_id)
229 229
230int register_vlan_dev(struct net_device *dev) 230int register_vlan_dev(struct net_device *dev)
231{ 231{
232 struct vlan_dev_info *vlan = VLAN_DEV_INFO(dev); 232 struct vlan_dev_info *vlan = vlan_dev_info(dev);
233 struct net_device *real_dev = vlan->real_dev; 233 struct net_device *real_dev = vlan->real_dev;
234 unsigned short vlan_id = vlan->vlan_id; 234 unsigned short vlan_id = vlan->vlan_id;
235 struct vlan_group *grp, *ngrp = NULL; 235 struct vlan_group *grp, *ngrp = NULL;
@@ -328,10 +328,10 @@ static int register_vlan_device(struct net_device *real_dev,
328 */ 328 */
329 new_dev->mtu = real_dev->mtu; 329 new_dev->mtu = real_dev->mtu;
330 330
331 VLAN_DEV_INFO(new_dev)->vlan_id = VLAN_ID; /* 1 through VLAN_VID_MASK */ 331 vlan_dev_info(new_dev)->vlan_id = VLAN_ID; /* 1 through VLAN_VID_MASK */
332 VLAN_DEV_INFO(new_dev)->real_dev = real_dev; 332 vlan_dev_info(new_dev)->real_dev = real_dev;
333 VLAN_DEV_INFO(new_dev)->dent = NULL; 333 vlan_dev_info(new_dev)->dent = NULL;
334 VLAN_DEV_INFO(new_dev)->flags = VLAN_FLAG_REORDER_HDR; 334 vlan_dev_info(new_dev)->flags = VLAN_FLAG_REORDER_HDR;
335 335
336 new_dev->rtnl_link_ops = &vlan_link_ops; 336 new_dev->rtnl_link_ops = &vlan_link_ops;
337 err = register_vlan_dev(new_dev); 337 err = register_vlan_dev(new_dev);
@@ -348,7 +348,7 @@ out_free_newdev:
348static void vlan_sync_address(struct net_device *dev, 348static void vlan_sync_address(struct net_device *dev,
349 struct net_device *vlandev) 349 struct net_device *vlandev)
350{ 350{
351 struct vlan_dev_info *vlan = VLAN_DEV_INFO(vlandev); 351 struct vlan_dev_info *vlan = vlan_dev_info(vlandev);
352 352
353 /* May be called without an actual change */ 353 /* May be called without an actual change */
354 if (!compare_ether_addr(vlan->real_dev_addr, dev->dev_addr)) 354 if (!compare_ether_addr(vlan->real_dev_addr, dev->dev_addr))