]> 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)
commit303cf7fa95e9c028e9e18b03c52189b840c14d76
treee138600cf5c32488091f19e46c1cff0a98995a2d
parentb426e277ad63d625e94dd4624b78061bf8f75ad3
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