igb: Allow used RX rings less than allocated ones
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 16 Jun 2012 11:24:38 +0000 (19:24 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 16 Jun 2012 13:28:06 +0000 (21:28 +0800)
commitbe922da60ada7aac0ea5e29003f96fc49a58eb06
tree40902985e3bd5ef7ff74c7a342f2b31ad91eeda1
parent1a482e3fea833c34264b54d566ddd0f4276d8bcf
igb: Allow used RX rings less than allocated ones

If MSI-X interrupt is not used or polling is used, two RX rings are
enabled:
- Packets' RSS hash still could be extracted
- Avoid extra memory reading of RX ring, thus avoid unnecessary cache
  trashing
sys/dev/netif/igb/if_igb.c
sys/dev/netif/igb/if_igb.h