Deleted Added
full compact
if_nxge.c (257176) if_nxge.c (283291)
1/*-
2 * Copyright (c) 2002-2007 Neterion, Inc.
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2002-2007 Neterion, Inc.
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/nxge/if_nxge.c 257176 2013-10-26 17:58:36Z glebius $
26 * $FreeBSD: head/sys/dev/nxge/if_nxge.c 283291 2015-05-22 17:05:21Z jkim $
27 */
28
29#include <dev/nxge/if_nxge.h>
30#include <dev/nxge/xge-osdep.h>
31#include <net/if_arp.h>
32#include <sys/types.h>
33#include <net/if.h>
34#include <net/if_var.h>

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

1739
1740 mtx_assert((&lldev->mtx_drv), MA_OWNED);
1741
1742 /* If device is in running state, initializing is not required */
1743 if(ifnetp->if_drv_flags & IFF_DRV_RUNNING)
1744 return;
1745
1746 /* Initializing timer */
27 */
28
29#include <dev/nxge/if_nxge.h>
30#include <dev/nxge/xge-osdep.h>
31#include <net/if_arp.h>
32#include <sys/types.h>
33#include <net/if.h>
34#include <net/if_var.h>

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

1739
1740 mtx_assert((&lldev->mtx_drv), MA_OWNED);
1741
1742 /* If device is in running state, initializing is not required */
1743 if(ifnetp->if_drv_flags & IFF_DRV_RUNNING)
1744 return;
1745
1746 /* Initializing timer */
1747 callout_init(&lldev->timer, CALLOUT_MPSAFE);
1747 callout_init(&lldev->timer, 1);
1748
1749 xge_trace(XGE_TRACE, "Set MTU size");
1750 status = xge_hal_device_mtu_set(hldev, ifnetp->if_mtu);
1751 if(status != XGE_HAL_OK) {
1752 xge_trace(XGE_ERR, "Setting MTU in HAL device failed");
1753 goto _exit;
1754 }
1755

--- 1767 unchanged lines hidden ---
1748
1749 xge_trace(XGE_TRACE, "Set MTU size");
1750 status = xge_hal_device_mtu_set(hldev, ifnetp->if_mtu);
1751 if(status != XGE_HAL_OK) {
1752 xge_trace(XGE_ERR, "Setting MTU in HAL device failed");
1753 goto _exit;
1754 }
1755

--- 1767 unchanged lines hidden ---