Skip to content

Commit c54ffc7

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-pf: mcs: Introduce MACSEC hardware offloading
This patch introduces the macsec offload feature to cn10k PF netdev driver. The macsec offload ops like adding, deleting and updating SecYs, SCs, SAs and stats are supported. XPN support will be added in later patches. Some stats use same counter in hardware which means based on the SecY mode the same counter represents different stat. Hence when SecY mode/policy is changed then snapshot of current stats are captured. Also there is no provision to specify the unique flow-id/SCI per packet to hardware hence different mac address needs to be set for macsec interfaces. Signed-off-by: Subbaraya Sundeep <[email protected]> Signed-off-by: Sunil Goutham <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d06c2ab commit c54ffc7

File tree

5 files changed

+1776
-0
lines changed

5 files changed

+1776
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ rvu_nicvf-y := otx2_vf.o otx2_devlink.o
1313

1414
rvu_nicpf-$(CONFIG_DCB) += otx2_dcbnl.o
1515
rvu_nicvf-$(CONFIG_DCB) += otx2_dcbnl.o
16+
rvu_nicpf-$(CONFIG_MACSEC) += cn10k_macsec.o
1617

1718
ccflags-y += -I$(srctree)/drivers/net/ethernet/marvell/octeontx2/af

0 commit comments

Comments
 (0)