]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: PN rollover support
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 13 Jan 2020 22:31:48 +0000 (23:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jan 2020 19:31:41 +0000 (11:31 -0800)
commit2a1938d8e0447f586941db0d1d015492e5fc30fb
tree4b6237e7342ba9a11f4aa1cdd0c9f4ddccc500dc
parent473acb59140bf47d76f648b9f84b5956d7b39b6e
net: phy: mscc: PN rollover support

This patch adds support for handling MACsec PN rollover in the mscc PHY
driver. When a flow rolls over, an interrupt is fired. This patch adds
the logic to check all flows and identify the one rolling over in the
handle_interrupt PHY helper, then disables the flow and report the event
to the MACsec core.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc.c
drivers/net/phy/mscc_macsec.h