]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-switch: use the port index in the IRQ handler
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 3 Aug 2021 16:57:39 +0000 (19:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 08:53:34 +0000 (09:53 +0100)
commit17deb839c286ded68a86f4dc33b926d9e9bd2249
tree58ca989c33254f5f77442631625f6366f42bd0b3
parent8968f60f904b712f4746de36417118da988534c3
dpaa2-switch: use the port index in the IRQ handler

The MC firmware supplies us the switch interface index for which an
interrupt was triggered. Use this to our advantage instead of looping
through all the switch ports and doing unnecessary work.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c