diff options
author | David S. Miller <davem@davemloft.net> | 2023-12-27 13:08:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-27 13:08:10 +0000 |
commit | 2f7ccf1d8835975a92fae7704fa73cb2e49bc12f (patch) | |
tree | 6c814f739546bc21a243d1128bd95866d78e7858 /drivers/net/netdevsim/macsec.c | |
parent | c2b2ee36250d967c21890cb801e24af4b6a9eaa5 (diff) | |
parent | dc1a00380aa6cc24dc3709ee50a22d1e24cd3673 (diff) |
Merge branch 'net-tja11xx-macsec-support'
Radu Pirea says:
====================
Add MACsec support for TJA11XX C45 PHYs
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.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/macsec.c')
-rw-r--r-- | drivers/net/netdevsim/macsec.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/netdevsim/macsec.c b/drivers/net/netdevsim/macsec.c index 0d5f50430dd3..aa007b1e4b78 100644 --- a/drivers/net/netdevsim/macsec.c +++ b/drivers/net/netdevsim/macsec.c @@ -3,11 +3,6 @@ #include <net/macsec.h> #include "netdevsim.h" -static inline u64 sci_to_cpu(sci_t sci) -{ - return be64_to_cpu((__force __be64)sci); -} - static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) { int i; |