eth_media.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) eth_media.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * net/tipc/eth_media.c: Ethernet bearer support for TIPC
3 *
4 * Copyright (c) 2001-2007, Ericsson AB
5 * Copyright (c) 2005-2007, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 184 unchanged lines hidden (view full) ---

193
194static int recv_notification(struct notifier_block *nb, unsigned long evt,
195 void *dv)
196{
197 struct net_device *dev = (struct net_device *)dv;
198 struct eth_bearer *eb_ptr = &eth_bearers[0];
199 struct eth_bearer *stop = &eth_bearers[MAX_ETH_BEARERS];
200
1/*
2 * net/tipc/eth_media.c: Ethernet bearer support for TIPC
3 *
4 * Copyright (c) 2001-2007, Ericsson AB
5 * Copyright (c) 2005-2007, Wind River Systems
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 184 unchanged lines hidden (view full) ---

193
194static int recv_notification(struct notifier_block *nb, unsigned long evt,
195 void *dv)
196{
197 struct net_device *dev = (struct net_device *)dv;
198 struct eth_bearer *eb_ptr = &eth_bearers[0];
199 struct eth_bearer *stop = &eth_bearers[MAX_ETH_BEARERS];
200
201 if (dev->nd_net != &init_net)
202 return NOTIFY_DONE;
203
201 while ((eb_ptr->dev != dev)) {
202 if (++eb_ptr == stop)
203 return NOTIFY_DONE; /* couldn't find device */
204 }
205 if (!eb_ptr->bearer)
206 return NOTIFY_DONE; /* bearer had been disabled */
207
208 eb_ptr->bearer->mtu = dev->mtu;

--- 103 unchanged lines hidden ---
204 while ((eb_ptr->dev != dev)) {
205 if (++eb_ptr == stop)
206 return NOTIFY_DONE; /* couldn't find device */
207 }
208 if (!eb_ptr->bearer)
209 return NOTIFY_DONE; /* bearer had been disabled */
210
211 eb_ptr->bearer->mtu = dev->mtu;

--- 103 unchanged lines hidden ---