Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 09/01/2007 07:32:32
Module Name:	src
Committed By:	dyoung
Date:		Sat Sep  1 07:32:32 UTC 2007

Modified Files:
	src/sys/arch/alpha/a12: if_ade.c
	src/sys/arch/amiga/dev: if_ed.c if_es.c if_qn.c
	src/sys/arch/mac68k/dev: if_mc.c
	src/sys/arch/mac68k/nubus: if_netdock_nubus.c
	src/sys/arch/macppc/dev: am79c950.c if_bm.c if_gm.c
	src/sys/arch/newsmips/apbus: if_sn.c
	src/sys/arch/next68k/dev: mb8795.c
	src/sys/arch/sun3/dev: if_ie.c
	src/sys/dev/bi: if_ni.c
	src/sys/dev/ic: ath.c atw.c awi.c dp8390.c hme.c lance.c lemac.c
	    mb86960.c mtd803.c pdq_ifsubr.c rt2560.c rt2661.c sgec.c smc91cxx.c
	    wi.c
	src/sys/dev/isa: if_iy.c
	src/sys/dev/marvell: if_gfe.c
	src/sys/dev/pci: if_de.c if_ipw.c if_iwi.c if_nfe.c if_ti.c if_txp.c
	    if_vge.c if_wpi.c
	src/sys/dev/pcmcia: if_cnw.c if_ray.c if_xi.c
	src/sys/dev/qbus: if_qe.c
	src/sys/dev/sbus: be.c qe.c
	src/sys/dev/scsipi: if_se.c
	src/sys/dev/usb: if_aue.c if_axe.c

Log Message:
Change a bazillion occurrences of code resembling this,

	error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.


To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 src/sys/arch/alpha/a12/if_ade.c
cvs rdiff -r1.52 -r1.53 src/sys/arch/amiga/dev/if_ed.c
cvs rdiff -r1.39 -r1.40 src/sys/arch/amiga/dev/if_es.c
cvs rdiff -r1.28 -r1.29 src/sys/arch/amiga/dev/if_qn.c
cvs rdiff -r1.31 -r1.32 src/sys/arch/mac68k/dev/if_mc.c
cvs rdiff -r1.13 -r1.14 src/sys/arch/mac68k/nubus/if_netdock_nubus.c
cvs rdiff -r1.21 -r1.22 src/sys/arch/macppc/dev/am79c950.c
cvs rdiff -r1.32 -r1.33 src/sys/arch/macppc/dev/if_bm.c
cvs rdiff -r1.29 -r1.30 src/sys/arch/macppc/dev/if_gm.c
cvs rdiff -r1.24 -r1.25 src/sys/arch/newsmips/apbus/if_sn.c
cvs rdiff -r1.40 -r1.41 src/sys/arch/next68k/dev/mb8795.c
cvs rdiff -r1.47 -r1.48 src/sys/arch/sun3/dev/if_ie.c
cvs rdiff -r1.30 -r1.31 src/sys/dev/bi/if_ni.c
cvs rdiff -r1.85 -r1.86 src/sys/dev/ic/ath.c
cvs rdiff -r1.127 -r1.128 src/sys/dev/ic/atw.c
cvs rdiff -r1.75 -r1.76 src/sys/dev/ic/awi.c
cvs rdiff -r1.64 -r1.65 src/sys/dev/ic/dp8390.c
cvs rdiff -r1.58 -r1.59 src/sys/dev/ic/hme.c
cvs rdiff -r1.38 -r1.39 src/sys/dev/ic/lance.c
cvs rdiff -r1.32 -r1.33 src/sys/dev/ic/lemac.c
cvs rdiff -r1.66 -r1.67 src/sys/dev/ic/mb86960.c
cvs rdiff -r1.13 -r1.14 src/sys/dev/ic/mtd803.c
cvs rdiff -r1.48 -r1.49 src/sys/dev/ic/pdq_ifsubr.c
cvs rdiff -r1.10 -r1.11 src/sys/dev/ic/rt2560.c
cvs rdiff -r1.16 -r1.17 src/sys/dev/ic/rt2661.c
cvs rdiff -r1.31 -r1.32 src/sys/dev/ic/sgec.c
cvs rdiff -r1.61 -r1.62 src/sys/dev/ic/smc91cxx.c
cvs rdiff -r1.220 -r1.221 src/sys/dev/ic/wi.c
cvs rdiff -r1.76 -r1.77 src/sys/dev/isa/if_iy.c
cvs rdiff -r1.24 -r1.25 src/sys/dev/marvell/if_gfe.c
cvs rdiff -r1.124 -r1.125 src/sys/dev/pci/if_de.c
cvs rdiff -r1.32 -r1.33 src/sys/dev/pci/if_ipw.c
cvs rdiff -r1.63 -r1.64 src/sys/dev/pci/if_iwi.c
cvs rdiff -r1.16 -r1.17 src/sys/dev/pci/if_nfe.c
cvs rdiff -r1.75 -r1.76 src/sys/dev/pci/if_ti.c
cvs rdiff -r1.20 -r1.21 src/sys/dev/pci/if_txp.c src/sys/dev/pci/if_wpi.c
cvs rdiff -r1.36 -r1.37 src/sys/dev/pci/if_vge.c
cvs rdiff -r1.41 -r1.42 src/sys/dev/pcmcia/if_cnw.c
cvs rdiff -r1.65 -r1.66 src/sys/dev/pcmcia/if_ray.c
cvs rdiff -r1.61 -r1.62 src/sys/dev/pcmcia/if_xi.c
cvs rdiff -r1.62 -r1.63 src/sys/dev/qbus/if_qe.c
cvs rdiff -r1.53 -r1.54 src/sys/dev/sbus/be.c
cvs rdiff -r1.41 -r1.42 src/sys/dev/sbus/qe.c
cvs rdiff -r1.66 -r1.67 src/sys/dev/scsipi/if_se.c
cvs rdiff -r1.103 -r1.104 src/sys/dev/usb/if_aue.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/usb/if_axe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.