Deleted Added
full compact
ipoib_main.c (331769) ipoib_main.c (332159)
1/*
2 * Copyright (c) 2004 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
4 * Copyright (c) 2004 Voltaire, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

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

313#endif
314 default:
315 ifp->if_init(ifp->if_softc);
316 break;
317 }
318 break;
319
320 case SIOCGIFADDR:
1/*
2 * Copyright (c) 2004 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
4 * Copyright (c) 2004 Voltaire, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

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

313#endif
314 default:
315 ifp->if_init(ifp->if_softc);
316 break;
317 }
318 break;
319
320 case SIOCGIFADDR:
321 {
322 struct sockaddr *sa;
323
324 sa = (struct sockaddr *) & ifr->ifr_data;
325 bcopy(IF_LLADDR(ifp),
326 (caddr_t) sa->sa_data, INFINIBAND_ALEN);
327 }
321 bcopy(IF_LLADDR(ifp), &ifr->ifr_addr.sa_data[0],
322 INFINIBAND_ALEN);
328 break;
329
330 case SIOCSIFMTU:
331 /*
332 * Set the interface MTU.
333 */
334 error = -ipoib_change_mtu(priv, ifr->ifr_mtu);
335 break;

--- 1230 unchanged lines hidden ---
323 break;
324
325 case SIOCSIFMTU:
326 /*
327 * Set the interface MTU.
328 */
329 error = -ipoib_change_mtu(priv, ifr->ifr_mtu);
330 break;

--- 1230 unchanged lines hidden ---