freebsd-nq/sys/dev/mlx4
Hans Petter Selasky fe3ca95c9d mlx4: Use the CQ quota for SRIOV when creating completion EQs
When creating EQs to handle CQ completion events for the PF or for
VFs, we create enough EQE entries to handle completions for the max
number of CQs that can use that EQ.

When SRIOV is activated, the max number of CQs a VF (or the PF) can
obtain is its CQ quota (determined by the Hypervisor resource
tracker).  Therefore, when creating an EQ, the number of EQE entries
that the VF should request for that EQ is the CQ quota value (and not
the total number of CQs available in the firmware).

Under SRIOV, the PF, also must use its CQ quota, because the resource
tracker also controls how many CQs the PF can obtain.

Using the firmware total CQs instead of the CQ quota when creating EQs
resulted wasting MTT entries, due to allocating more EQEs than were
needed.

MFC after:		3 days
Sponsored by:		Mellanox Technologies
2017-05-19 12:22:48 +00:00
..
mlx4_core mlx4: Use the CQ quota for SRIOV when creating completion EQs 2017-05-19 12:22:48 +00:00
mlx4_en Don't free uninitialized sysctl contexts in the mlx4en driver. This 2017-04-27 14:39:52 +00:00
mlx4_ib Improve code readability and fix compilation error when using clang 4.x. 2017-02-15 18:31:09 +00:00
cmd.h
cq.h
device.h Change mlx4 QP allocation scheme. 2017-02-10 15:28:18 +00:00
doorbell.h
driver.h
qp.h
srq.h
stats.h