Date: Thu, 13 Oct 2005 20:22:07 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/nge if_nge.c if_ngereg.h Message-ID: <200510132022.j9DKM7K7077680@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2005-10-13 20:22:07 UTC
FreeBSD src repository
Modified files:
sys/dev/nge if_nge.c if_ngereg.h
Log:
Minor tweaks and fixups:
- Use device_printf() and if_printf() and remove nge_unit.
- Use callout_init_mtx() and remove nge_tick_locked() as nge_tick() is now
always called with the driver lock held.
- Use M_ZERO to contigmalloc() when allocating nge_ldata. It was possible
for the random garbage to be used in certain cases otherwise.
- Cleanup attach error handling including no longer leaking nge_ldata.
- Add locking to the ifmedia callouts.
- Lock accesses to if_hwassist and if_capenable in nge_ioctl().
Submitted by: Yuriy N. Shkandybin jura at networks dot ru (1, 3, 4)
Tested by: Yuriy N. Shkandybin jura at networks dot ru
MFC after: 3 days
Revision Changes Path
1.82 +61 -68 src/sys/dev/nge/if_nge.c
1.14 +0 -1 src/sys/dev/nge/if_ngereg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510132022.j9DKM7K7077680>
