]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Change this driver to do taskqueue(9) based TX and interrupt
authormarius <marius@FreeBSD.org>
Wed, 24 Jun 2009 20:56:06 +0000 (20:56 +0000)
committermarius <marius@FreeBSD.org>
Wed, 24 Jun 2009 20:56:06 +0000 (20:56 +0000)
commit4713c64cd8653c1bac249375659349df8bd7906e
treeed86c3fb3d7aa1e41c874cc2f0bd29c56189d4a9
parent5489c2aa91f1667e554487bab155a78920ae79c5
- Change this driver to do taskqueue(9) based TX and interrupt
  handling in order to reduce interrupt overhead which results in
  better performance.
- Call ether_ifdetach(9) before stopping the controller and the
  callouts detach in order to prevent active BPF listeners to clear
  promiscuous mode which may lead to the tick callout being restarted
  which will trigger a panic once it's actually gone.
- Add explicit IFF_DRV_RUNNING checking in order to prevent extra
  link up/down events when using dhclient(8).
- Use the correct macro for deciding whether 2/3 of the available TX
  descriptors are used.
- Wrap the RX fault printing in #ifdef CAS_DEBUG in order to not
  unnecessarily frighten users and as debugging was the actual
  intention. Real errors caused by these faults still will be
  accumulated as input errors. It might be a good idea to later on
  add driver specific counters for the faults though.

Submitted by: yongari (original patch)
sys/dev/cas/if_cas.c
sys/dev/cas/if_casvar.h