SVNews r318531

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-05-19 12:22:48 - r318531 by hselasky (Hans Petter Selasky)

Complete list of files affected by revision r318531:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/dev/mlx4/mlx4_core/mlx4_eq.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/mlx4/mlx4_core/mlx4_main.c  

Commit message:

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

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 20 ms, 2 files printed. Current time is 2017-11-23 05:45:04. All times are in UTC/GMT.