pktgen.c (457c4cbc5a3dde259d2a1f15d5f9785290397267) | pktgen.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* 2 * Authors: 3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> 4 * Uppsala University and 5 * Swedish University of Agricultural Sciences 6 * 7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 8 * Ben Greear <greearb@candelatech.com> --- 1961 unchanged lines hidden (view full) --- 1970 } 1971} 1972 1973static int pktgen_device_event(struct notifier_block *unused, 1974 unsigned long event, void *ptr) 1975{ 1976 struct net_device *dev = ptr; 1977 | 1/* 2 * Authors: 3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se> 4 * Uppsala University and 5 * Swedish University of Agricultural Sciences 6 * 7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 8 * Ben Greear <greearb@candelatech.com> --- 1961 unchanged lines hidden (view full) --- 1970 } 1971} 1972 1973static int pktgen_device_event(struct notifier_block *unused, 1974 unsigned long event, void *ptr) 1975{ 1976 struct net_device *dev = ptr; 1977 |
1978 if (dev->nd_net != &init_net) 1979 return NOTIFY_DONE; 1980 |
|
1978 /* It is OK that we do not hold the group lock right now, 1979 * as we run under the RTNL lock. 1980 */ 1981 1982 switch (event) { 1983 case NETDEV_CHANGENAME: 1984 pktgen_change_name(dev); 1985 break; --- 1899 unchanged lines hidden --- | 1981 /* It is OK that we do not hold the group lock right now, 1982 * as we run under the RTNL lock. 1983 */ 1984 1985 switch (event) { 1986 case NETDEV_CHANGENAME: 1987 pktgen_change_name(dev); 1988 break; --- 1899 unchanged lines hidden --- |