SVNews r318537

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

2017-05-19 12:56:18 - r318537 by hselasky (Hans Petter Selasky)

Complete list of files affected by revision r318537:

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

   Contents     MODIFY   /stable/9/sys  
  History   Contents   Diff   MODIFY   /stable/9/sys/ofed/drivers/net/mlx4/eq.c  
  History   Contents   Diff   MODIFY   /stable/9/sys/ofed/drivers/net/mlx4/fw.c  
  History   Contents   Diff   MODIFY   /stable/9/sys/ofed/drivers/net/mlx4/fw.h  
  History   Contents   Diff   MODIFY   /stable/9/sys/ofed/drivers/net/mlx4/main.c  
  History   Contents   Diff   MODIFY   /stable/9/sys/ofed/drivers/net/mlx4/profile.c  
  History   Contents   Diff   MODIFY   /stable/9/sys/ofed/include/linux/mlx4/device.h  

Commit message:

MFC r313555:
Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs.

Previously, the mlx4 driver queried the firmware in order to get the
number of supported EQs. Under SRIOV, since this was done before the
driver notified the firmware how many VFs it actually needs, the
firmware had to take into account a worst case scenario and always
allocated four EQs per VF, where one was used for events while the
others were used for completions. Now, when the firmware supports the
asymmetric allocation scheme, denoted by exposing num_sys_eqs > 0 (-->
MLX4_DEV_CAP_FLAG2_SYS_EQS), we use the QUERY_FUNC command to query
the firmware before enabling SRIOV. Thus we can get more EQs and MSI-X
vectors per function. Moreover, when running in the new
firmware/driver mode, the limitation that the number of EQs should be
a power of two is lifted.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision:
Sponsored by: Mellanox Technologies


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

Page generated in 19 ms, 7 files printed. Current time is 2018-05-23 05:18:11. All times are in UTC/GMT.