octeontx2-af: Enable sriov on AF to create VFs
authorTomasz Duszynski <tduszynski@marvell.com>
Mon, 19 Nov 2018 10:47:39 +0000 (16:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 01:56:08 +0000 (17:56 -0800)
commit9bd6caf33567f2326ac66a7030df11fb32a3fbea
tree9f1935a0a0fe21c0640c368f4995489046abc7e7
parent9bdc47a6e3288b65947af841bb5b76998d097b18
octeontx2-af: Enable sriov on AF to create VFs

Enable all AF VFs during probe. Since AF's VFs work in pairs
(eg: Pkts sent on VF0 are received by VF1 and viceversa),
enable only even number of VFs out of totalVFs, which should
again be less than number of loopback (LBK) channels.

Also enable VF's mailbox interrupts.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h