]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f5fa55e024b9c19450286771a65b77b32123b8a
treee138600cf5c32488091f19e46c1cff0a98995a2d
parentea924d0ed9563fd2948582042f7cbb7793a995ee
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