Commit 9d712b8d authored by Steen Hegelund's avatar Steen Hegelund Committed by David S. Miller

net: microchip: sparx5: Add ES2 VCAP model and updated KUNIT VCAP model

This provides the VCAP model for the Sparx5 ES2 (Egress Stage 2) VCAP.

This VCAP provides tagging and remarking functionality

This also renames a VCAP keyfield: VCAP_KF_MIRROR_ENA becomes
VCAP_KF_MIRROR_PROBE, as the first name was caused by a mistake in the
model transformation.
Signed-off-by: default avatarSteen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a5300724
...@@ -198,6 +198,7 @@ static const struct sparx5_main_io_resource sparx5_main_iomap[] = { ...@@ -198,6 +198,7 @@ static const struct sparx5_main_io_resource sparx5_main_iomap[] = {
{ TARGET_QSYS, 0x110a0000, 2 }, /* 0x6110a0000 */ { TARGET_QSYS, 0x110a0000, 2 }, /* 0x6110a0000 */
{ TARGET_QFWD, 0x110b0000, 2 }, /* 0x6110b0000 */ { TARGET_QFWD, 0x110b0000, 2 }, /* 0x6110b0000 */
{ TARGET_XQS, 0x110c0000, 2 }, /* 0x6110c0000 */ { TARGET_XQS, 0x110c0000, 2 }, /* 0x6110c0000 */
{ TARGET_VCAP_ES2, 0x110d0000, 2 }, /* 0x6110d0000 */
{ TARGET_CLKGEN, 0x11100000, 2 }, /* 0x611100000 */ { TARGET_CLKGEN, 0x11100000, 2 }, /* 0x611100000 */
{ TARGET_ANA_AC_POL, 0x11200000, 2 }, /* 0x611200000 */ { TARGET_ANA_AC_POL, 0x11200000, 2 }, /* 0x611200000 */
{ TARGET_QRES, 0x11280000, 2 }, /* 0x611280000 */ { TARGET_QRES, 0x11280000, 2 }, /* 0x611280000 */
......
/* SPDX-License-Identifier: BSD-3-Clause */ /* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries. /* Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries.
* Microchip VCAP API * Microchip VCAP API
*/ */
/* This file is autogenerated by cml-utils 2022-12-06 09:49:28 +0100. /* This file is autogenerated by cml-utils 2023-01-17 16:52:16 +0100.
* Commit ID: cd9451f1b9d8cafa58f845de66a6e373658019ef * Commit ID: 229ec79be5df142c1f335a01d0e63232d4feb2ba
*/ */
#ifndef __VCAP_AG_API__ #ifndef __VCAP_AG_API__
...@@ -276,7 +276,8 @@ enum vcap_keyfield_set { ...@@ -276,7 +276,8 @@ enum vcap_keyfield_set {
* Select the mode of the Generic Index * Select the mode of the Generic Index
* VCAP_KF_LOOKUP_PAG: W8, sparx5: is2, lan966x: is2 * VCAP_KF_LOOKUP_PAG: W8, sparx5: is2, lan966x: is2
* Classified Policy Association Group: chains rules from IS1/CLM to IS2 * Classified Policy Association Group: chains rules from IS1/CLM to IS2
* VCAP_KF_MIRROR_ENA: *** No docstring *** * VCAP_KF_MIRROR_PROBE: W2, sparx5: es2
* Identifies frame copies generated as a result of mirroring
* VCAP_KF_OAM_CCM_CNTS_EQ0: W1, sparx5: is2/es2, lan966x: is2 * VCAP_KF_OAM_CCM_CNTS_EQ0: W1, sparx5: is2/es2, lan966x: is2
* Dual-ended loss measurement counters in CCM frames are all zero * Dual-ended loss measurement counters in CCM frames are all zero
* VCAP_KF_OAM_DETECTED: W1, lan966x: is2 * VCAP_KF_OAM_DETECTED: W1, lan966x: is2
...@@ -407,7 +408,7 @@ enum vcap_key_field { ...@@ -407,7 +408,7 @@ enum vcap_key_field {
VCAP_KF_LOOKUP_GEN_IDX, VCAP_KF_LOOKUP_GEN_IDX,
VCAP_KF_LOOKUP_GEN_IDX_SEL, VCAP_KF_LOOKUP_GEN_IDX_SEL,
VCAP_KF_LOOKUP_PAG, VCAP_KF_LOOKUP_PAG,
VCAP_KF_MIRROR_ENA, VCAP_KF_MIRROR_PROBE,
VCAP_KF_OAM_CCM_CNTS_EQ0, VCAP_KF_OAM_CCM_CNTS_EQ0,
VCAP_KF_OAM_DETECTED, VCAP_KF_OAM_DETECTED,
VCAP_KF_OAM_FLAGS, VCAP_KF_OAM_FLAGS,
......
...@@ -1709,7 +1709,7 @@ static const struct vcap_field es2_mac_etype_keyfield[] = { ...@@ -1709,7 +1709,7 @@ static const struct vcap_field es2_mac_etype_keyfield[] = {
.offset = 96, .offset = 96,
.width = 1, .width = 1,
}, },
[VCAP_KF_MIRROR_ENA] = { [VCAP_KF_MIRROR_PROBE] = {
.type = VCAP_FIELD_U32, .type = VCAP_FIELD_U32,
.offset = 97, .offset = 97,
.width = 2, .width = 2,
...@@ -1847,7 +1847,7 @@ static const struct vcap_field es2_arp_keyfield[] = { ...@@ -1847,7 +1847,7 @@ static const struct vcap_field es2_arp_keyfield[] = {
.offset = 95, .offset = 95,
.width = 1, .width = 1,
}, },
[VCAP_KF_MIRROR_ENA] = { [VCAP_KF_MIRROR_PROBE] = {
.type = VCAP_FIELD_U32, .type = VCAP_FIELD_U32,
.offset = 96, .offset = 96,
.width = 2, .width = 2,
...@@ -2010,7 +2010,7 @@ static const struct vcap_field es2_ip4_tcp_udp_keyfield[] = { ...@@ -2010,7 +2010,7 @@ static const struct vcap_field es2_ip4_tcp_udp_keyfield[] = {
.offset = 96, .offset = 96,
.width = 1, .width = 1,
}, },
[VCAP_KF_MIRROR_ENA] = { [VCAP_KF_MIRROR_PROBE] = {
.type = VCAP_FIELD_U32, .type = VCAP_FIELD_U32,
.offset = 97, .offset = 97,
.width = 2, .width = 2,
...@@ -2223,7 +2223,7 @@ static const struct vcap_field es2_ip4_other_keyfield[] = { ...@@ -2223,7 +2223,7 @@ static const struct vcap_field es2_ip4_other_keyfield[] = {
.offset = 96, .offset = 96,
.width = 1, .width = 1,
}, },
[VCAP_KF_MIRROR_ENA] = { [VCAP_KF_MIRROR_PROBE] = {
.type = VCAP_FIELD_U32, .type = VCAP_FIELD_U32,
.offset = 97, .offset = 97,
.width = 2, .width = 2,
...@@ -2376,7 +2376,7 @@ static const struct vcap_field es2_ip_7tuple_keyfield[] = { ...@@ -2376,7 +2376,7 @@ static const struct vcap_field es2_ip_7tuple_keyfield[] = {
.offset = 93, .offset = 93,
.width = 1, .width = 1,
}, },
[VCAP_KF_MIRROR_ENA] = { [VCAP_KF_MIRROR_PROBE] = {
.type = VCAP_FIELD_U32, .type = VCAP_FIELD_U32,
.offset = 94, .offset = 94,
.width = 2, .width = 2,
...@@ -2569,7 +2569,7 @@ static const struct vcap_field es2_ip4_vid_keyfield[] = { ...@@ -2569,7 +2569,7 @@ static const struct vcap_field es2_ip4_vid_keyfield[] = {
.offset = 48, .offset = 48,
.width = 1, .width = 1,
}, },
[VCAP_KF_MIRROR_ENA] = { [VCAP_KF_MIRROR_PROBE] = {
.type = VCAP_FIELD_U32, .type = VCAP_FIELD_U32,
.offset = 49, .offset = 49,
.width = 2, .width = 2,
...@@ -3847,7 +3847,7 @@ static const char * const vcap_keyfield_names[] = { ...@@ -3847,7 +3847,7 @@ static const char * const vcap_keyfield_names[] = {
[VCAP_KF_LOOKUP_GEN_IDX] = "LOOKUP_GEN_IDX", [VCAP_KF_LOOKUP_GEN_IDX] = "LOOKUP_GEN_IDX",
[VCAP_KF_LOOKUP_GEN_IDX_SEL] = "LOOKUP_GEN_IDX_SEL", [VCAP_KF_LOOKUP_GEN_IDX_SEL] = "LOOKUP_GEN_IDX_SEL",
[VCAP_KF_LOOKUP_PAG] = "LOOKUP_PAG", [VCAP_KF_LOOKUP_PAG] = "LOOKUP_PAG",
[VCAP_KF_MIRROR_ENA] = "MIRROR_ENA", [VCAP_KF_MIRROR_PROBE] = "MIRROR_PROBE",
[VCAP_KF_OAM_CCM_CNTS_EQ0] = "OAM_CCM_CNTS_EQ0", [VCAP_KF_OAM_CCM_CNTS_EQ0] = "OAM_CCM_CNTS_EQ0",
[VCAP_KF_OAM_DETECTED] = "OAM_DETECTED", [VCAP_KF_OAM_DETECTED] = "OAM_DETECTED",
[VCAP_KF_OAM_FLAGS] = "OAM_FLAGS", [VCAP_KF_OAM_FLAGS] = "OAM_FLAGS",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment