igb: Use extended interrupt mode whenever possible
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 3 Jun 2012 11:04:33 +0000 (19:04 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 4 Jun 2012 14:46:31 +0000 (22:46 +0800)
commitf6167a56379b088f78a5f7b2bc5cc90aa32d1a05
tree18475d6e1249f9ea6ddb981423f3b092c0b532a0
parentc3162c4e9904177b8a280ff85c23c9ca0fa52634
igb: Use extended interrupt mode whenever possible

The extended interrupt mode could be used as long as the interrupt
is not shared.  MSI by definition is not shared.  For line interrupt,
hw.igbX.irq.unshared tunable is added; it could be set, if the igbX
does not share interrupt line with other devices.

The extended interrupt mode could deliver accurate information about
which queue is active, thus avoiding extra memory reading.
sys/dev/netif/igb/if_igb.c
sys/dev/netif/igb/if_igb.h