- Make "ifconfig nfeX mtu xxx" work.
commitb0367b5f905dfa2962e7a1c7451a8144faa4fc8d
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 Jun 2007 11:38:58 +0000 (17 11:38 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 17 Jun 2007 11:38:58 +0000 (17 11:38 +0000)
tree5610e73eeb24caa849d77ff2e4feb9ea4d7250b1
parent31319a9c394ecd5dcd6e81c62dc02342c851d901
- Make "ifconfig nfeX mtu xxx" work.
- Don't use jumbo frames by default for chips that support jumbo frames.
  Jumbo frame pool is still allocated in case mtu is set above 1500.
Tested-by: "Rumko" <rumcic@gmail.com>
- Make number of RX descriptors tunable, hw.nfe.rx_ring_count, default
  value seems to be too small if jumbo frames are used.  Add a read-only
  sysctl node hw.nfe.rx_ring_count, which reflects the value of the newly
  added tunable.
Submitted-by: "Rumko" <rumcic@gmail.com> (w/ modification)
sys/dev/netif/nfe/if_nfe.c
sys/dev/netif/nfe/if_nfereg.h
sys/dev/netif/nfe/if_nfevar.h