Deleted Added
full compact
vxge.c (263102) vxge.c (270856)
1/*-
2 * Copyright(c) 2002-2011 Exar Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification are permitted provided the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
1/*-
2 * Copyright(c) 2002-2011 Exar Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification are permitted provided the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 */
31/*$FreeBSD: head/sys/dev/vxge/vxge.c 263102 2014-03-13 03:42:24Z glebius $*/
31/*$FreeBSD: head/sys/dev/vxge/vxge.c 270856 2014-08-30 19:55:54Z glebius $*/
32
33#include <dev/vxge/vxge.h>
34
35static int vxge_pci_bd_no = -1;
36static u32 vxge_drv_copyright = 0;
37static u32 vxge_dev_ref_count = 0;
38static u32 vxge_dev_req_reboot = 0;
39

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

1390#if __FreeBSD_version >= 800000
1391 ifp->if_transmit = vxge_mq_send;
1392 ifp->if_qflush = vxge_mq_qflush;
1393#endif
1394 ifp->if_snd.ifq_drv_maxlen = max(vdev->config.ifq_maxlen, ifqmaxlen);
1395 IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
1396 /* IFQ_SET_READY(&ifp->if_snd); */
1397
32
33#include <dev/vxge/vxge.h>
34
35static int vxge_pci_bd_no = -1;
36static u32 vxge_drv_copyright = 0;
37static u32 vxge_dev_ref_count = 0;
38static u32 vxge_dev_req_reboot = 0;
39

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

1390#if __FreeBSD_version >= 800000
1391 ifp->if_transmit = vxge_mq_send;
1392 ifp->if_qflush = vxge_mq_qflush;
1393#endif
1394 ifp->if_snd.ifq_drv_maxlen = max(vdev->config.ifq_maxlen, ifqmaxlen);
1395 IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen);
1396 /* IFQ_SET_READY(&ifp->if_snd); */
1397
1398 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
1398 ifp->if_hdrlen = sizeof(struct ether_vlan_header);
1399
1400 ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_VLAN_HWCSUM;
1401 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU;
1402 ifp->if_capabilities |= IFCAP_JUMBO_MTU;
1403
1404 if (vdev->config.tso_enable)
1405 vxge_tso_config(vdev);
1406

--- 2795 unchanged lines hidden ---
1399
1400 ifp->if_capabilities |= IFCAP_HWCSUM | IFCAP_VLAN_HWCSUM;
1401 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU;
1402 ifp->if_capabilities |= IFCAP_JUMBO_MTU;
1403
1404 if (vdev->config.tso_enable)
1405 vxge_tso_config(vdev);
1406

--- 2795 unchanged lines hidden ---