netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/7] Add MACsec support for TJA11XX C45 PHYs
@ 2023-09-20  9:22 Radu Pirea (NXP OSS)
  2023-09-20  9:22 ` [PATCH net-next v5 1/7] net: macsec: move sci_to_cpu to macsec header Radu Pirea (NXP OSS)
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Radu Pirea (NXP OSS) @ 2023-09-20  9:22 UTC (permalink / raw)
  To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
	richardcochran, sd, sebastian.tobuschat
  Cc: netdev, linux-kernel, Radu Pirea (NXP OSS)

This is the MACsec support for TJA11XX PHYs. The MACsec block encrypts
the ethernet frames on the fly and has no buffering. This operation will
grow the frames by 32 bytes. If the frames are sent back to back, the
MACsec block will not have enough room to insert the SecTAG and the ICV
and the frames will be dropped.

To mitigate this, the PHY can parse a specific ethertype with some
padding bytes and replace them with the SecTAG and ICV. These padding
bytes might be dummy or might contain information about TX SC that must
be used to encrypt the frame.

Radu P.

Radu Pirea (NXP OSS) (7):
  net: macsec: move sci_to_cpu to macsec header
  net: macsec: documentation for macsec_context and macsec_ops
  net: macsec: indicate next pn update when offloading
  net: macsec: introduce mdo_insert_tx_tag
  net: phy: nxp-c45-tja11xx: add MACsec support
  net: phy: nxp-c45-tja11xx: add MACsec statistics
  net: phy: nxp-c45-tja11xx: implement mdo_insert_tx_tag

 MAINTAINERS                              |    2 +-
 drivers/net/macsec.c                     |   94 +-
 drivers/net/netdevsim/macsec.c           |    5 -
 drivers/net/phy/Kconfig                  |    2 +-
 drivers/net/phy/Makefile                 |    6 +-
 drivers/net/phy/nxp-c45-tja11xx-macsec.c | 1724 ++++++++++++++++++++++
 drivers/net/phy/nxp-c45-tja11xx.c        |   77 +-
 drivers/net/phy/nxp-c45-tja11xx.h        |   62 +
 include/net/macsec.h                     |   55 +
 9 files changed, 1988 insertions(+), 39 deletions(-)
 create mode 100644 drivers/net/phy/nxp-c45-tja11xx-macsec.c
 create mode 100644 drivers/net/phy/nxp-c45-tja11xx.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-27 12:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-20  9:22 [PATCH net-next v5 0/7] Add MACsec support for TJA11XX C45 PHYs Radu Pirea (NXP OSS)
2023-09-20  9:22 ` [PATCH net-next v5 1/7] net: macsec: move sci_to_cpu to macsec header Radu Pirea (NXP OSS)
2023-09-20  9:22 ` [PATCH net-next v5 2/7] net: macsec: documentation for macsec_context and macsec_ops Radu Pirea (NXP OSS)
2023-09-20  9:22 ` [PATCH net-next v5 3/7] net: macsec: indicate next pn update when offloading Radu Pirea (NXP OSS)
2023-09-21 15:11   ` Sabrina Dubroca
2023-09-22 15:54     ` Radu Pirea (OSS)
2023-09-26 12:16       ` [EXT] " Igor Russkikh
2023-09-27 12:33         ` Radu Pirea (OSS)
2023-09-20  9:22 ` [PATCH net-next v5 4/7] net: macsec: introduce mdo_insert_tx_tag Radu Pirea (NXP OSS)
2023-09-20  9:22 ` [PATCH net-next v5 5/7] net: phy: nxp-c45-tja11xx: add MACsec support Radu Pirea (NXP OSS)
2023-09-20  9:22 ` [PATCH net-next v5 6/7] net: phy: nxp-c45-tja11xx: add MACsec statistics Radu Pirea (NXP OSS)
2023-09-20  9:22 ` [PATCH net-next v5 7/7] net: phy: nxp-c45-tja11xx: implement mdo_insert_tx_tag Radu Pirea (NXP OSS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).