]> 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)
commitf6d4d65be23877cf9a833c6bce04a88bf1c7360c
tree9f1935a0a0fe21c0640c368f4995489046abc7e7
parent9166b8392ade595d6dedd814f097907feb3d7fce
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