summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_ix.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-10-13 19:48:06 +0000
committerwollman <wollman@FreeBSD.org>1995-10-13 19:48:06 +0000
commit234ef116d975fedba5bd998e69fa71d6a1c0542b (patch)
treeae4c80f82b68580a77b0dad688cad0327acd8765 /sys/i386/isa/if_ix.c
parentad2a8dc42d82628e3758c1c5de0f70393ed2234d (diff)
downloadFreeBSD-src-234ef116d975fedba5bd998e69fa71d6a1c0542b.zip
FreeBSD-src-234ef116d975fedba5bd998e69fa71d6a1c0542b.tar.gz
Say goodbye to IFF_NOTRAILERS. Support for trailers was officially
dropped for 4.4, but for some reason this flag lived on. (Until today, that is.)
Diffstat (limited to 'sys/i386/isa/if_ix.c')
-rw-r--r--sys/i386/isa/if_ix.c46
1 files changed, 7 insertions, 39 deletions
diff --git a/sys/i386/isa/if_ix.c b/sys/i386/isa/if_ix.c
index 1c7ef57..cdafd00 100644
--- a/sys/i386/isa/if_ix.c
+++ b/sys/i386/isa/if_ix.c
@@ -28,7 +28,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_ix.c,v 1.8 1995/09/19 18:55:11 bde Exp $
+ * $Id: if_ix.c,v 1.9 1995/10/05 03:01:13 davidg Exp $
*/
#include "ix.h"
@@ -577,24 +577,17 @@ ixattach(struct isa_device *dvp) {
* the = 0;'s
* Infact we should bzero this just to make sure
* that something does not get missed.
+ * Further note by GW:
+ * Actually, it's a complete waste of time to zero any of
+ * this stuff because the C language guarantees that it's
+ * already zeroed. If this code is changed to do dynamic
+ * allocation, this will have to get revisited.
*/
bzero(ifp, sizeof(ifp));
ifp->if_name = ixdriver.name;
ifp->if_unit = unit;
ifp->if_mtu = ETHERMTU;
- ifp->if_flags = IFF_NOTRAILERS | IFF_BROADCAST;
- /*
- * This is commented out to save memory and cpu time
- * ifp->if_timer = 0;
- * ifp->if_metric = 0;
- * ifp->if_addrlist = 0;
- * ifp->if_snd.ifq_head = 0;
- * ifp->if_snd.ifq_tail = 0;
- * ifp->if_snd.ifq_len = 0;
- * ifp->if_snd.ifq_maxlen = 0;
- * ifp->if_snd.ifq_drops = 0;
- * end of commented out block
- */
+ ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST;
ifp->if_init = ixinit;
ifp->if_output = ether_output;
ifp->if_start = ixstart;
@@ -602,34 +595,9 @@ ixattach(struct isa_device *dvp) {
ifp->if_ioctl = ixioctl;
ifp->if_reset = ixreset;
ifp->if_watchdog = ixwatchdog;
- /*
- * This is commented out to save memory and cpu time
- * ifp->if_ipackets = 0;
- * ifp->if_ierrors = 0;
- * ifp->if_opackets = 0;
- * ifp->if_oerrors = 0;
- * ifp->if_collisions = 0;
- * ifp->if_next = 0;
- * end of commented out block
- */
ifp->if_type = IFT_ETHER;
ifp->if_addrlen = ETHER_ADDRESS_LENGTH;
ifp->if_hdrlen = ETHER_HEADER_LENGTH;
- /*
- * This is commented out to save memory and cpu time
- * ifp->if_index = 0;
- * ifp->if_lastchange.tv_sec = 0;
- * ifp->if_lastchange.tv_usec = 0;
- * ifp->if_ibytes = 0;
- * ifp->if_obytes = 0;
- * ifp->if_imcasts = 0;
- * ifp->if_omcasts = 0;
- * ifp->if_iqdrops = 0;
- * ifp->if_noproto = 0;
- * ifp->if_baudrate = 0;
- * ifp->if_pcount = 0;
- * end of commented out block
- */
#ifdef IXCOUNTERS
/*
* ZZZ more counters added, but bzero gets them
OpenPOWER on IntegriCloud