]> asedeno.scripts.mit.edu Git - linux.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)
commit781449a4ae3b381950ee9aec4d8a54e35f66ab9b
tree4b6237e7342ba9a11f4aa1cdd0c9f4ddccc500dc
parent5c937de78b39e47ce9924fc4b863c5b727edc328
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