liquidio: fix use of pf in pass-through mode in a virtual machine
authorRick Farrington <ricardo.farrington@cavium.com>
Sat, 19 Aug 2017 01:21:49 +0000 (18:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Aug 2017 03:21:32 +0000 (20:21 -0700)
commit0c45d7fe12c7e1510bae9dfac189c8b927e4636b
treed4b2779579c1fc824b2dd5d6760c06f79e9164e5
parent6eb15e2130c939aec2edb08d84110c20ab3a16bf
liquidio: fix use of pf in pass-through mode in a virtual machine

Fix problem when PF is used in pass-through mode in a VM (w/embedded f/w).

If host error reading PF num from CN23XX_PCIE_SRIOV_FDL reg,
try to retrieve PF num from SLI_PKT(0)_INPUT_CONTROL (initialized by f/w).

Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/lio_main.c