]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Add free rsrc count mbox msg
authorGeorge Cherian <george.cherian@marvell.com>
Wed, 25 Aug 2021 12:18:43 +0000 (17:48 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 12:39:01 +0000 (13:39 +0100)
commit08481f0214d58881e9f8959f30787ea22beac6d1
tree138ace58c211e8bf53184911a8efbea35c3d5466
parent0ad5dd630bb1e8736e9b32dffee3ca14c32563dc
octeontx2-af: Add free rsrc count mbox msg

Upon receiving the MBOX_MSG_FREE_RSRC_CNT, the AF will find out the
current number of free resources and reply it back to the requester. No
guarantee is given on the future state of the free resources yet.
If another requester sends MBOX_MSG_ATTACH_RESOURCES after this call,
the number of available resources might change.

Signed-off-by: George Cherian <george.cherian@marvell.com>
Signed-off-by: Stanislaw Kardach <skardach@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/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu.c