]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb4a3635a40cd8479dc5d9edd681c074febfb95b5
tree9f1935a0a0fe21c0640c368f4995489046abc7e7
parentfdc3ea04a6b02b97df0d0d0e2a274251688b1f7f
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