net/qede/base: allow clients to override VF MSI-X table size
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 19 Sep 2017 01:30:03 +0000 (18:30 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commitcb051eb251e2d71f30819093038843851af90ff3
treeeae929c41a8ae5241b359df35ef90700d21524d7
parent04b000498026664fb37a6593fd9c8133f8bf7505
net/qede/base: allow clients to override VF MSI-X table size

For chip variant CHIP_NUM_AH_xxx, MSI-x configuration for VFs is controlled
per-PF [for all of its child VFs] instead of on a per-VF basis. A flag
called "dont_override_vf_msix" is added that allows the caller/client to
specify the mode they want to operate. If dont_override_vf_msix is false as
in the case of VF of CHIP_NUM_AH_xxx, first a check is made as to what is
currently configured number. Management FW will be asked to configure the
requested number only if its bigger than the currently configured value.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore.h
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_sriov.c
drivers/net/qede/base/mcp_public.h