]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4: limit max MSIX allocations
authorAjaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
Fri, 5 May 2017 19:08:32 +0000 (12:08 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 30 May 2017 06:33:58 +0000 (23:33 -0700)
commitdc8aac8d95e5e4a2dbc2781d83ad3a7f89778a10
tree18a0f4929b7ef8846cc455ce3482993a9cc42421
parent8acadcf4f7a973d6093eda5a4eec7eba34a4d950
mlx4: limit max MSIX allocations

We get more than 64 MSI-X vectors from CX3 firmware 2.35.5530 onwards.
This results in in legacy mode EQ allocs after 64 EQs, which ends up
flooding 3 vectors and causing performance degradation.

With this patch, we limit max vector allocations MAX_MSIX(64).
When Mellanox driver can support more EQs without getting into legacy
mode, this patch should go away.

Orabug: 25912737

Signed-off-by: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
drivers/net/ethernet/mellanox/mlx4/main.c