diff options
author | Subbaraya Sundeep <sbhatta@marvell.com> | 2023-05-16 14:40:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-17 11:09:16 +0300 |
commit | 030d71fd93b1f0fe6e844c1d790f70c80d828c79 (patch) | |
tree | f8014b98da0dc614e6eac60c98ca2b4587cda2a4 /drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | |
parent | fa0583c202433c3d359a1b0579f52da16e25e4df (diff) | |
download | linux-030d71fd93b1f0fe6e844c1d790f70c80d828c79.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h index 0f2b2a901225..b2267c8bec37 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h @@ -419,6 +419,7 @@ struct cn10k_mcs_txsc { u8 encoding_sa; u8 salt[CN10K_MCS_SA_PER_SC][MACSEC_SALT_LEN]; ssci_t ssci[CN10K_MCS_SA_PER_SC]; + bool vlan_dev; /* macsec running on VLAN ? */ }; struct cn10k_mcs_rxsc { |