]> 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)
commite80409a6a9e2b1f681e35440ba87c39798670b88
tree58ca989c33254f5f77442631625f6366f42bd0b3
parentd41085c716ce906fdde746e0be5f6e7b1d039e7c
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