aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar David S. Miller <davem@davemloft.net> 2022-10-03 12:50:19 +0100
committerGravatar David S. Miller <davem@davemloft.net> 2022-10-03 12:50:19 +0100
commitf75886a045531fedf4c11cf06d977a91f4cb266c (patch)
tree2b58ea4661a89635de8528c8bc6df94a91ca9164 /lib
parentMerge branch 'lan966x-police-mirroring' (diff)
parentocteontx2-pf: mcs: Introduce MACSEC hardware offloading (diff)
downloadlinux-f75886a045531fedf4c11cf06d977a91f4cb266c.tar.gz
linux-f75886a045531fedf4c11cf06d977a91f4cb266c.tar.bz2
linux-f75886a045531fedf4c11cf06d977a91f4cb266c.zip
Merge branch 'octeontx2-macsec-offload'
Subbaraya Sundeep says: ==================== net: Introduce macsec hardware offload for cn10k platform CN10K-B and CNF10K-B variaints of CN10K silicon has macsec block(MCS) to encrypt and decrypt packets at MAC/hardware level. This block is a global resource with hardware resources like SecYs, SCs and SAs and is in between NIX block and RPM LMAC. CN10K-B silicon has only one MCS block which receives packets from all LMACS whereas CNF10K-B has seven MCS blocks for seven LMACs. Both MCS blocks are similar in operation except for few register offsets and some configurations require writing to different registers. This patchset introduces macsec hardware offloading support. AF driver manages hardware resources and PF driver consumes them when macsec hardware offloading is needed. Patch 1 adds basic pci driver for both CN10K-B and CNF10K-B silicons and initializes hardware block. Patches 2 and 3 adds mailboxes to init, reset and manage resources of the MCS block Patch 4 adds a low priority rule in MCS TCAM so that the traffic which do not need macsec processing can be sent/received Patch 5 adds macsec stats collection support Patch 6 adds interrupt handling support and any event in which AF consumer is interested can be notified via mbox notification Patch 7 adds debugfs support which helps in debugging packet path Patch 8 introduces macsec hardware offload feature for PF netdev driver. v3 changes: Fixed clang and sparse warnings v2 changes: Fix build error by changing #ifdef CONFIG_MACSEC to #if IS_ENABLED(CONFIG_MACSEC) ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions