if_nxge.c (199554) | if_nxge.c (207554) |
---|---|
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 199554 2009-11-19 21:47:54Z jhb $ | 26 * $FreeBSD: head/sys/dev/nxge/if_nxge.c 207554 2010-05-03 07:32:50Z sobomax $ |
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_vlan_var.h> --- 1150 unchanged lines hidden (view full) --- 1185 ifnetp->if_baudrate = XGE_BAUDRATE; 1186 ifnetp->if_init = xge_init; 1187 ifnetp->if_softc = lldev; 1188 ifnetp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 1189 ifnetp->if_ioctl = xge_ioctl; 1190 ifnetp->if_start = xge_send; 1191 1192 /* TODO: Check and assign optimal value */ | 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_vlan_var.h> --- 1150 unchanged lines hidden (view full) --- 1185 ifnetp->if_baudrate = XGE_BAUDRATE; 1186 ifnetp->if_init = xge_init; 1187 ifnetp->if_softc = lldev; 1188 ifnetp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 1189 ifnetp->if_ioctl = xge_ioctl; 1190 ifnetp->if_start = xge_send; 1191 1192 /* TODO: Check and assign optimal value */ |
1193 ifnetp->if_snd.ifq_maxlen = IFQ_MAXLEN; | 1193 ifnetp->if_snd.ifq_maxlen = ifqmaxlen; |
1194 1195 ifnetp->if_capabilities = IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | 1196 IFCAP_HWCSUM; 1197 if(lldev->enabled_tso) 1198 ifnetp->if_capabilities |= IFCAP_TSO4; 1199 if(lldev->enabled_lro) 1200 ifnetp->if_capabilities |= IFCAP_LRO; 1201 --- 2319 unchanged lines hidden --- | 1194 1195 ifnetp->if_capabilities = IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | 1196 IFCAP_HWCSUM; 1197 if(lldev->enabled_tso) 1198 ifnetp->if_capabilities |= IFCAP_TSO4; 1199 if(lldev->enabled_lro) 1200 ifnetp->if_capabilities |= IFCAP_LRO; 1201 --- 2319 unchanged lines hidden --- |