OSDN Git Service

octeontx2-af: Convert mbox msg id check to a macro
authorAleksey Makarov <amakarov@marvell.com>
Wed, 10 Oct 2018 12:44:26 +0000 (18:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Oct 2018 17:06:02 +0000 (10:06 -0700)
commit1f15462539829cd05510c053538aad27a8f1fac8
treee138600cf5c32488091f19e46c1cff0a98995a2d
parent7304ac4567bcb72fd57cc79582bf53ca7840136f
octeontx2-af: Convert mbox msg id check to a macro

With 10's of mailbox messages expected to be handled in future,
checking for message id could become a lengthy switch case. Hence
added a macro to auto generate the switch case for each msg id.

Signed-off-by: Aleksey Makarov <amakarov@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