if_ae.c (ee7b0571c2c18bdec848ed2044223cc88db29bd8) if_ae.c (1bffa9511fe94125820858b0ead796db54ac019d)
1/*-
2 * Copyright (c) 2008 Stanislav Sedov <stas@FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

358 MII_OFFSET_ANY, 0);
359 if (error != 0) {
360 device_printf(dev, "attaching PHYs failed\n");
361 goto fail;
362 }
363
364 ether_ifattach(ifp, sc->eaddr);
365 /* Tell the upper layer(s) we support long frames. */
1/*-
2 * Copyright (c) 2008 Stanislav Sedov <stas@FreeBSD.org>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

358 MII_OFFSET_ANY, 0);
359 if (error != 0) {
360 device_printf(dev, "attaching PHYs failed\n");
361 goto fail;
362 }
363
364 ether_ifattach(ifp, sc->eaddr);
365 /* Tell the upper layer(s) we support long frames. */
366 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
366 ifp->if_hdrlen = sizeof(struct ether_vlan_header);
367
368 /*
369 * Create and run all helper tasks.
370 */
371 sc->tq = taskqueue_create_fast("ae_taskq", M_WAITOK,
372 taskqueue_thread_enqueue, &sc->tq);
373 if (sc->tq == NULL) {
374 device_printf(dev, "could not create taskqueue.\n");

--- 1881 unchanged lines hidden ---
367
368 /*
369 * Create and run all helper tasks.
370 */
371 sc->tq = taskqueue_create_fast("ae_taskq", M_WAITOK,
372 taskqueue_thread_enqueue, &sc->tq);
373 if (sc->tq == NULL) {
374 device_printf(dev, "could not create taskqueue.\n");

--- 1881 unchanged lines hidden ---