freebsd-dev/sys/dev/oce
Alexander Motin 3582828053 Fix array out of bound panic introduced in r306219.
As I see, different NICs in different configurations may have different
numbers of TX and RX queues.  The code was assuming 1:1 mapping between
event queues (interrupts) and TX/RX queues.  Since number of interrupts
is set to maximum of TX and RX queues, when those two are different, the
system is doomed.

I have no documentation or deep knowledge about this hardware, so this
change is based on general observations and code reading.  If some of my
guesses are wrong, please do better.  I just confirmed HP NC550SFP NICs
are working now.

MFC after:	2 weeks
Sponsored by:	iXsystems, Inc.
2019-05-28 18:32:04 +00:00
..
oce_hw.c ifnet: Replace if_addr_lock rwlock with epoch + mutex 2018-05-18 20:13:34 +00:00
oce_hw.h
oce_if.c Fix array out of bound panic introduced in r306219. 2019-05-28 18:32:04 +00:00
oce_if.h Added support for the SIOCGI2C ioctl. 2019-01-08 05:41:04 +00:00
oce_mbox.c Added support for the SIOCGI2C ioctl. 2019-01-08 05:41:04 +00:00
oce_queue.c
oce_sysctl.c Added support for the SIOCGI2C ioctl. 2019-01-08 05:41:04 +00:00
oce_user.h
oce_util.c