vlan.c (0ce49a3945474fc942ec37c0c0efece60f592f80) | vlan.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* 2 * INET 802.1Q VLAN 3 * Ethernet-type device handling. 4 * 5 * Authors: Ben Greear <greearb@candelatech.com> 6 * Please send support related email to: vlan@scry.wanfear.com 7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 8 * --- 17 unchanged lines hidden (view full) --- 26#include <net/datalink.h> 27#include <linux/mm.h> 28#include <linux/in.h> 29#include <linux/init.h> 30#include <net/p8022.h> 31#include <net/arp.h> 32#include <linux/rtnetlink.h> 33#include <linux/notifier.h> | 1/* 2 * INET 802.1Q VLAN 3 * Ethernet-type device handling. 4 * 5 * Authors: Ben Greear <greearb@candelatech.com> 6 * Please send support related email to: vlan@scry.wanfear.com 7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 8 * --- 17 unchanged lines hidden (view full) --- 26#include <net/datalink.h> 27#include <linux/mm.h> 28#include <linux/in.h> 29#include <linux/init.h> 30#include <net/p8022.h> 31#include <net/arp.h> 32#include <linux/rtnetlink.h> 33#include <linux/notifier.h> |
34#include <net/net_namespace.h> |
|
34 35#include <linux/if_vlan.h> 36#include "vlan.h" 37#include "vlanproc.h" 38 39#define DRV_VERSION "1.8" 40 41/* Global VLAN variables */ --- 556 unchanged lines hidden (view full) --- 598 599static int vlan_device_event(struct notifier_block *unused, unsigned long event, void *ptr) 600{ 601 struct net_device *dev = ptr; 602 struct vlan_group *grp = __vlan_find_group(dev->ifindex); 603 int i, flgs; 604 struct net_device *vlandev; 605 | 35 36#include <linux/if_vlan.h> 37#include "vlan.h" 38#include "vlanproc.h" 39 40#define DRV_VERSION "1.8" 41 42/* Global VLAN variables */ --- 556 unchanged lines hidden (view full) --- 599 600static int vlan_device_event(struct notifier_block *unused, unsigned long event, void *ptr) 601{ 602 struct net_device *dev = ptr; 603 struct vlan_group *grp = __vlan_find_group(dev->ifindex); 604 int i, flgs; 605 struct net_device *vlandev; 606 |
607 if (dev->nd_net != &init_net) 608 return NOTIFY_DONE; 609 |
|
606 if (!grp) 607 goto out; 608 609 /* It is OK that we do not hold the group lock right now, 610 * as we run under the RTNL lock. 611 */ 612 613 switch (event) { --- 229 unchanged lines hidden --- | 610 if (!grp) 611 goto out; 612 613 /* It is OK that we do not hold the group lock right now, 614 * as we run under the RTNL lock. 615 */ 616 617 switch (event) { --- 229 unchanged lines hidden --- |