if_re.c (267363) | if_re.c (270856) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998-2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998-2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/re/if_re.c 267363 2014-06-11 14:53:58Z jhb $"); | 34__FBSDID("$FreeBSD: head/sys/dev/re/if_re.c 270856 2014-08-30 19:55:54Z glebius $"); |
35 36/* 37 * RealTek 8139C+/8169/8169S/8110S/8168/8111/8101E PCI NIC driver 38 * 39 * Written by Bill Paul <wpaul@windriver.com> 40 * Senior Networking Software Engineer 41 * Wind River Systems 42 */ --- 1633 unchanged lines hidden (view full) --- 1676#ifdef DEVICE_POLLING 1677 ifp->if_capabilities |= IFCAP_POLLING; 1678#endif 1679 /* 1680 * Tell the upper layer(s) we support long frames. 1681 * Must appear after the call to ether_ifattach() because 1682 * ether_ifattach() sets ifi_hdrlen to the default value. 1683 */ | 35 36/* 37 * RealTek 8139C+/8169/8169S/8110S/8168/8111/8101E PCI NIC driver 38 * 39 * Written by Bill Paul <wpaul@windriver.com> 40 * Senior Networking Software Engineer 41 * Wind River Systems 42 */ --- 1633 unchanged lines hidden (view full) --- 1676#ifdef DEVICE_POLLING 1677 ifp->if_capabilities |= IFCAP_POLLING; 1678#endif 1679 /* 1680 * Tell the upper layer(s) we support long frames. 1681 * Must appear after the call to ether_ifattach() because 1682 * ether_ifattach() sets ifi_hdrlen to the default value. 1683 */ |
1684 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); | 1684 ifp->if_hdrlen = sizeof(struct ether_vlan_header); |
1685 1686#ifdef DEV_NETMAP 1687 re_netmap_attach(sc); 1688#endif /* DEV_NETMAP */ 1689#ifdef RE_DIAG 1690 /* 1691 * Perform hardware diagnostic on the original RTL8169. 1692 * Some 32-bit cards were incorrectly wired and would --- 2355 unchanged lines hidden --- | 1685 1686#ifdef DEV_NETMAP 1687 re_netmap_attach(sc); 1688#endif /* DEV_NETMAP */ 1689#ifdef RE_DIAG 1690 /* 1691 * Perform hardware diagnostic on the original RTL8169. 1692 * Some 32-bit cards were incorrectly wired and would --- 2355 unchanged lines hidden --- |