]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Backout last change, since it is memory overkill for a non busy host or
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 17 Nov 2005 10:13:18 +0000 (10:13 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 17 Nov 2005 10:13:18 +0000 (10:13 +0000)
commit7f4f47d3fa1a6b13c05a13a0a0ea8ede15796f4d
tree9b7b4be1ff1190d526b8e72e6e29e4491d94d5b0
parent389ec194764f576d8d6b29571fbad7dae3e36564
- Backout last change, since it is memory overkill for a non busy host or
  for a notebook with em(4) adapter.
- Introduce tunables em.hw.txd and em.hw.rxd, which allow administrator
  to configure number of transmit and receive descriptors.
- Check em.hw.txd and em.hw.rxd against hardware limits [*] and require
  them to be multiple of 128.

[*] According to comments in if_em.h the 82540EM/82541ER chips can handle
    more than 256 descriptors. Since we don't have this hardware to test,
    we decided to mimic NetBSD wm(4) driver, that limits these chips to
    256 descriptors.

In collaboration with: yongari
sys/dev/em/if_em.c
sys/dev/em/if_em.h
sys/dev/em/if_em_hw.h