]> asedeno.scripts.mit.edu Git - linux.git/commit
octeontx2-af: Sync hw mbox with bounce buffer.
authorGeetha sowjanya <gakula@marvell.com>
Thu, 14 Nov 2019 05:26:24 +0000 (10:56 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 02:09:15 +0000 (18:09 -0800)
commitfdb9029814825c3055c104c630fc5958ff441668
treeb5179ea6ddaa547a10171a7971770ffcd3ed5021
parenta36740f614d3875708cc7a72779924d4f1d8730d
octeontx2-af: Sync hw mbox with bounce buffer.

If mailbox client has a bounce buffer or a intermediate buffer where
mbox messages are framed then copy them from there to HW buffer.
If 'mbase' and 'hw_mbase' are not same then assume 'mbase' points to
bounce buffer.

This patch also adds msg_size field to mbox header to copy only valid
data instead of whole buffer.

Signed-off-by: Geetha sowjanya <gakula@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.c
drivers/net/ethernet/marvell/octeontx2/af/mbox.h