]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: if_gem.c 1.37, 1.39, 1.40, 1.43; if_gemvar.h 1.12
authormarius <marius@FreeBSD.org>
Sat, 15 Sep 2007 10:49:57 +0000 (10:49 +0000)
committermarius <marius@FreeBSD.org>
Sat, 15 Sep 2007 10:49:57 +0000 (10:49 +0000)
commit12bc0e99f3eb24a2c567751f25214d4e50bafced
tree02081f929e81886781648f40a0f99daa7d4d7221
parentee49306c35a11f1b45335c4a50a66314a5cd387d
MFC: if_gem.c 1.37, 1.39, 1.40, 1.43; if_gemvar.h 1.12

- Fix -Wundef warnings found when compiling i386 LINT, GENERIC and
  custom kernels.
- Use bus_get_dma_tag() so gem(4) works on platforms requiring it.
- Use the gem_tick() callout instead of if_slowtimo() for driving
  gem_watchdog() in order to avoid races accessing if_timer.
  While at it relax the watchdog a bit by reloading it in gem_tint()
  if there are still packets enqueued.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
- Fix inconsistencies in prototypes.
sys/dev/gem/if_gem.c
sys/dev/gem/if_gemvar.h