]> 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)
commit5ca3df9ad45e9afba68240c3d4c8480938980d33
tree138ace58c211e8bf53184911a8efbea35c3d5466
parent4af5dd1f760ae32c50a57111b83ca45d752404d8
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