OSDN Git Service

octeontx2-pf: mcs: Support VLAN in clear text
authorSubbaraya Sundeep <sbhatta@marvell.com>
Tue, 16 May 2023 11:40:31 +0000 (17:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2023 08:09:16 +0000 (09:09 +0100)
commit030d71fd93b1f0fe6e844c1d790f70c80d828c79
treef8014b98da0dc614e6eac60c98ca2b4587cda2a4
parentfa0583c202433c3d359a1b0579f52da16e25e4df
octeontx2-pf: mcs: Support VLAN in clear text

Detect whether macsec secy is running on top of VLAN
which implies transmitting VLAN tag in clear text before
macsec SecTag. In this case configure hardware to insert
SecTag after VLAN tag.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h