freebsd-dev/sys/dev/mlx4/mlx4_core
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
..
fw.h Change mlx4 QP allocation scheme. 2017-02-10 15:28:18 +00:00
icm.h
mlx4_alloc.c
mlx4_catas.c
mlx4_cmd.c
mlx4_cq.c
mlx4_eq.c mlx4: Use the CQ quota for SRIOV when creating completion EQs 2017-05-19 12:22:48 +00:00
mlx4_fw.c Change mlx4 QP allocation scheme. 2017-02-10 15:28:18 +00:00
mlx4_icm.c
mlx4_intf.c
mlx4_main.c mlx4: Use the CQ quota for SRIOV when creating completion EQs 2017-05-19 12:22:48 +00:00
mlx4_mcg.c
mlx4_mr.c
mlx4_pd.c
mlx4_port.c
mlx4_profile.c Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs. 2017-02-10 15:22:21 +00:00
mlx4_qp.c Change mlx4 QP allocation scheme. 2017-02-10 15:28:18 +00:00
mlx4_reset.c
mlx4_resource_tracker.c Change mlx4 QP allocation scheme. 2017-02-10 15:28:18 +00:00
mlx4_sense.c
mlx4_srq.c
mlx4_sys_tune.c
mlx4.h mlx(4): remove date from log message 2016-12-23 20:14:05 +00:00