SAI Metadata
Loading...
Searching...
No Matches
saimacsec.h
Go to the documentation of this file.
1
25#if !defined (__SAIMACSEC_H_)
26#define __SAIMACSEC_H_
27
28#include <saitypes.h>
29
41{
42 SAI_MACSEC_DIRECTION_EGRESS,
43 SAI_MACSEC_DIRECTION_INGRESS,
45
50{
51 SAI_MACSEC_CIPHER_SUITE_GCM_AES_128,
52 SAI_MACSEC_CIPHER_SUITE_GCM_AES_256,
53 SAI_MACSEC_CIPHER_SUITE_GCM_AES_XPN_128,
54 SAI_MACSEC_CIPHER_SUITE_GCM_AES_XPN_256
56
65{
66 SAI_MACSEC_MAX_SECURE_ASSOCIATIONS_PER_SC_TWO,
67 SAI_MACSEC_MAX_SECURE_ASSOCIATIONS_PER_SC_FOUR,
69
74{
79
87
95
103
111
119
132
140
150
160
170
180
189
198
206
215
225
235
244
254
265
274
282
291
299
307
315
320
325
331
336{
341
349
358
367
376
387
392
397
403
408{
413
418
424
429{
434
442
451
460
465
470
476
481{
486
491
496
501
506
511
516
521
526
531
537
542
548
554
560
566
572
578
585
590{
595
603
612
622
632
642
651
661
671
680
688
697
702
707
713
718{
726
731{
736
744
753
762
771
782
791
801
810
813
824
827
838
843
848
854
862{
869
875
882
889
896
903
910
916
922
928
934
941
952typedef sai_status_t (*sai_create_macsec_fn)(
953 _Out_ sai_object_id_t *macsec_id,
954 _In_ sai_object_id_t switch_id,
955 _In_ uint32_t attr_count,
956 _In_ const sai_attribute_t *attr_list);
957
965typedef sai_status_t (*sai_remove_macsec_fn)(
966 _In_ sai_object_id_t macsec_id);
967
976typedef sai_status_t (*sai_set_macsec_attribute_fn)(
977 _In_ sai_object_id_t macsec_id,
978 _In_ const sai_attribute_t *attr);
979
989typedef sai_status_t (*sai_get_macsec_attribute_fn)(
990 _In_ sai_object_id_t macsec_id,
991 _In_ uint32_t attr_count,
992 _Inout_ sai_attribute_t *attr_list);
993
1004typedef sai_status_t (*sai_create_macsec_port_fn)(
1005 _Out_ sai_object_id_t *macsec_port_id,
1006 _In_ sai_object_id_t switch_id,
1007 _In_ uint32_t attr_count,
1008 _In_ const sai_attribute_t *attr_list);
1009
1017typedef sai_status_t (*sai_remove_macsec_port_fn)(
1018 _In_ sai_object_id_t macsec_port_id);
1019
1028typedef sai_status_t (*sai_set_macsec_port_attribute_fn)(
1029 _In_ sai_object_id_t macsec_port_id,
1030 _In_ const sai_attribute_t *attr);
1031
1041typedef sai_status_t (*sai_get_macsec_port_attribute_fn)(
1042 _In_ sai_object_id_t macsec_port_id,
1043 _In_ uint32_t attr_count,
1044 _Inout_ sai_attribute_t *attr_list);
1045
1056typedef sai_status_t (*sai_get_macsec_port_stats_fn)(
1057 _In_ sai_object_id_t macsec_port_id,
1058 _In_ uint32_t number_of_counters,
1059 _In_ const sai_stat_id_t *counter_ids,
1060 _Out_ uint64_t *counters);
1061
1073typedef sai_status_t (*sai_get_macsec_port_stats_ext_fn)(
1074 _In_ sai_object_id_t macsec_port_id,
1075 _In_ uint32_t number_of_counters,
1076 _In_ const sai_stat_id_t *counter_ids,
1077 _In_ sai_stats_mode_t mode,
1078 _Out_ uint64_t *counters);
1079
1089typedef sai_status_t (*sai_clear_macsec_port_stats_fn)(
1090 _In_ sai_object_id_t macsec_port_id,
1091 _In_ uint32_t number_of_counters,
1092 _In_ const sai_stat_id_t *counter_ids);
1093
1104typedef sai_status_t (*sai_create_macsec_flow_fn)(
1105 _Out_ sai_object_id_t *macsec_flow_id,
1106 _In_ sai_object_id_t switch_id,
1107 _In_ uint32_t attr_count,
1108 _In_ const sai_attribute_t *attr_list);
1109
1117typedef sai_status_t (*sai_remove_macsec_flow_fn)(
1118 _In_ sai_object_id_t macsec_flow_id);
1119
1128typedef sai_status_t (*sai_set_macsec_flow_attribute_fn)(
1129 _In_ sai_object_id_t macsec_flow_id,
1130 _In_ const sai_attribute_t *attr);
1131
1141typedef sai_status_t (*sai_get_macsec_flow_attribute_fn)(
1142 _In_ sai_object_id_t macsec_flow_id,
1143 _In_ uint32_t attr_count,
1144 _Inout_ sai_attribute_t *attr_list);
1145
1156typedef sai_status_t (*sai_get_macsec_flow_stats_fn)(
1157 _In_ sai_object_id_t macsec_flow_id,
1158 _In_ uint32_t number_of_counters,
1159 _In_ const sai_stat_id_t *counter_ids,
1160 _Out_ uint64_t *counters);
1161
1173typedef sai_status_t (*sai_get_macsec_flow_stats_ext_fn)(
1174 _In_ sai_object_id_t macsec_flow_id,
1175 _In_ uint32_t number_of_counters,
1176 _In_ const sai_stat_id_t *counter_ids,
1177 _In_ sai_stats_mode_t mode,
1178 _Out_ uint64_t *counters);
1179
1189typedef sai_status_t (*sai_clear_macsec_flow_stats_fn)(
1190 _In_ sai_object_id_t macsec_flow_id,
1191 _In_ uint32_t number_of_counters,
1192 _In_ const sai_stat_id_t *counter_ids);
1193
1204typedef sai_status_t (*sai_create_macsec_sc_fn)(
1205 _Out_ sai_object_id_t *macsec_sc_id,
1206 _In_ sai_object_id_t switch_id,
1207 _In_ uint32_t attr_count,
1208 _In_ const sai_attribute_t *attr_list);
1209
1217typedef sai_status_t (*sai_remove_macsec_sc_fn)(
1218 _In_ sai_object_id_t macsec_sc_id);
1219
1228typedef sai_status_t (*sai_set_macsec_sc_attribute_fn)(
1229 _In_ sai_object_id_t macsec_sc_id,
1230 _In_ const sai_attribute_t *attr);
1231
1241typedef sai_status_t (*sai_get_macsec_sc_attribute_fn)(
1242 _In_ sai_object_id_t macsec_sc_id,
1243 _In_ uint32_t attr_count,
1244 _Inout_ sai_attribute_t *attr_list);
1245
1256typedef sai_status_t (*sai_get_macsec_sc_stats_fn)(
1257 _In_ sai_object_id_t macsec_sc_id,
1258 _In_ uint32_t number_of_counters,
1259 _In_ const sai_stat_id_t *counter_ids,
1260 _Out_ uint64_t *counters);
1261
1273typedef sai_status_t (*sai_get_macsec_sc_stats_ext_fn)(
1274 _In_ sai_object_id_t macsec_sc_id,
1275 _In_ uint32_t number_of_counters,
1276 _In_ const sai_stat_id_t *counter_ids,
1277 _In_ sai_stats_mode_t mode,
1278 _Out_ uint64_t *counters);
1279
1289typedef sai_status_t (*sai_clear_macsec_sc_stats_fn)(
1290 _In_ sai_object_id_t macsec_sc_id,
1291 _In_ uint32_t number_of_counters,
1292 _In_ const sai_stat_id_t *counter_ids);
1293
1304typedef sai_status_t (*sai_create_macsec_sa_fn)(
1305 _Out_ sai_object_id_t *macsec_sa_id,
1306 _In_ sai_object_id_t switch_id,
1307 _In_ uint32_t attr_count,
1308 _In_ const sai_attribute_t *attr_list);
1309
1317typedef sai_status_t (*sai_remove_macsec_sa_fn)(
1318 _In_ sai_object_id_t macsec_sa_id);
1319
1328typedef sai_status_t (*sai_set_macsec_sa_attribute_fn)(
1329 _In_ sai_object_id_t macsec_sa_id,
1330 _In_ const sai_attribute_t *attr);
1331
1341typedef sai_status_t (*sai_get_macsec_sa_attribute_fn)(
1342 _In_ sai_object_id_t macsec_sa_id,
1343 _In_ uint32_t attr_count,
1344 _Inout_ sai_attribute_t *attr_list);
1345
1356typedef sai_status_t (*sai_get_macsec_sa_stats_fn)(
1357 _In_ sai_object_id_t macsec_sa_id,
1358 _In_ uint32_t number_of_counters,
1359 _In_ const sai_stat_id_t *counter_ids,
1360 _Out_ uint64_t *counters);
1361
1373typedef sai_status_t (*sai_get_macsec_sa_stats_ext_fn)(
1374 _In_ sai_object_id_t macsec_sa_id,
1375 _In_ uint32_t number_of_counters,
1376 _In_ const sai_stat_id_t *counter_ids,
1377 _In_ sai_stats_mode_t mode,
1378 _Out_ uint64_t *counters);
1379
1389typedef sai_status_t (*sai_clear_macsec_sa_stats_fn)(
1390 _In_ sai_object_id_t macsec_sa_id,
1391 _In_ uint32_t number_of_counters,
1392 _In_ const sai_stat_id_t *counter_ids);
1393
1397typedef struct _sai_macsec_api_t
1398{
1399 sai_create_macsec_fn create_macsec;
1400 sai_remove_macsec_fn remove_macsec;
1401 sai_set_macsec_attribute_fn set_macsec_attribute;
1402 sai_get_macsec_attribute_fn get_macsec_attribute;
1403 sai_create_macsec_port_fn create_macsec_port;
1404 sai_remove_macsec_port_fn remove_macsec_port;
1405 sai_set_macsec_port_attribute_fn set_macsec_port_attribute;
1406 sai_get_macsec_port_attribute_fn get_macsec_port_attribute;
1407 sai_get_macsec_port_stats_fn get_macsec_port_stats;
1408 sai_get_macsec_port_stats_ext_fn get_macsec_port_stats_ext;
1409 sai_clear_macsec_port_stats_fn clear_macsec_port_stats;
1410 sai_create_macsec_flow_fn create_macsec_flow;
1411 sai_remove_macsec_flow_fn remove_macsec_flow;
1412 sai_set_macsec_flow_attribute_fn set_macsec_flow_attribute;
1413 sai_get_macsec_flow_attribute_fn get_macsec_flow_attribute;
1414 sai_get_macsec_flow_stats_fn get_macsec_flow_stats;
1415 sai_get_macsec_flow_stats_ext_fn get_macsec_flow_stats_ext;
1416 sai_clear_macsec_flow_stats_fn clear_macsec_flow_stats;
1417 sai_create_macsec_sc_fn create_macsec_sc;
1418 sai_remove_macsec_sc_fn remove_macsec_sc;
1419 sai_set_macsec_sc_attribute_fn set_macsec_sc_attribute;
1420 sai_get_macsec_sc_attribute_fn get_macsec_sc_attribute;
1421 sai_get_macsec_sc_stats_fn get_macsec_sc_stats;
1422 sai_get_macsec_sc_stats_ext_fn get_macsec_sc_stats_ext;
1423 sai_clear_macsec_sc_stats_fn clear_macsec_sc_stats;
1424 sai_create_macsec_sa_fn create_macsec_sa;
1425 sai_remove_macsec_sa_fn remove_macsec_sa;
1426 sai_set_macsec_sa_attribute_fn set_macsec_sa_attribute;
1427 sai_get_macsec_sa_attribute_fn get_macsec_sa_attribute;
1428 sai_get_macsec_sa_stats_fn get_macsec_sa_stats;
1429 sai_get_macsec_sa_stats_ext_fn get_macsec_sa_stats_ext;
1430 sai_clear_macsec_sa_stats_fn clear_macsec_sa_stats;
1432
1436#endif
_sai_macsec_cipher_suite_t
MACsec Cipher Suites.
Definition saimacsec.h:50
enum _sai_macsec_flow_attr_t sai_macsec_flow_attr_t
Attribute Id for sai_macsec_flow.
sai_status_t(* sai_set_macsec_sc_attribute_fn)(_In_ sai_object_id_t macsec_sc_id, _In_ const sai_attribute_t *attr)
Set MACsec Secure Channel attribute.
Definition saimacsec.h:1228
enum _sai_macsec_attr_t sai_macsec_attr_t
Attribute Id for sai_macsec.
sai_status_t(* sai_remove_macsec_fn)(_In_ sai_object_id_t macsec_id)
Delete the MACsec object.
Definition saimacsec.h:965
_sai_macsec_flow_stat_t
MACsec flow counter IDs in sai_get_macsec_stats() call.
Definition saimacsec.h:481
enum _sai_macsec_sa_stat_t sai_macsec_sa_stat_t
MACsec flow counter IDs in sai_get_macsec_sa_stats() call. Some of these counters appear as per Secur...
sai_status_t(* sai_get_macsec_port_attribute_fn)(_In_ sai_object_id_t macsec_port_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get MACsec port attribute.
Definition saimacsec.h:1041
_sai_macsec_sc_stat_t
MACsec Secure Channel counter IDs in sai_get_macsec_sc_stats() call.
Definition saimacsec.h:718
sai_status_t(* sai_get_macsec_sc_stats_fn)(_In_ sai_object_id_t macsec_sc_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters)
Get MACsec Secure Channel counters.
Definition saimacsec.h:1256
enum _sai_macsec_sa_attr_t sai_macsec_sa_attr_t
Attribute Id for sai_macsec_sa.
enum _sai_macsec_port_stat_t sai_macsec_port_stat_t
MACsec port counter IDs in sai_get_macsec_stats() call.
_sai_macsec_direction_t
MACsec direction types For PHY ASIC Egress is system to line direction and ingress is the opposite.
Definition saimacsec.h:41
_sai_macsec_sa_attr_t
Attribute Id for sai_macsec_sa.
Definition saimacsec.h:731
sai_status_t(* sai_set_macsec_sa_attribute_fn)(_In_ sai_object_id_t macsec_sa_id, _In_ const sai_attribute_t *attr)
Set MACsec Secure Association attribute.
Definition saimacsec.h:1328
sai_status_t(* sai_get_macsec_sa_stats_fn)(_In_ sai_object_id_t macsec_sa_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters)
Get MACsec Secure Association counters.
Definition saimacsec.h:1356
_sai_macsec_flow_attr_t
Attribute Id for sai_macsec_flow.
Definition saimacsec.h:429
sai_status_t(* sai_set_macsec_port_attribute_fn)(_In_ sai_object_id_t macsec_port_id, _In_ const sai_attribute_t *attr)
Set MACsec port attribute.
Definition saimacsec.h:1028
sai_status_t(* sai_get_macsec_port_stats_fn)(_In_ sai_object_id_t macsec_port_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters)
Get MACsec port counters.
Definition saimacsec.h:1056
sai_status_t(* sai_clear_macsec_sc_stats_fn)(_In_ sai_object_id_t macsec_sc_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids)
Clear MACsec Secure Channel counters.
Definition saimacsec.h:1289
enum _sai_macsec_port_attr_t sai_macsec_port_attr_t
Attribute Id for sai_macsec_port.
enum _sai_macsec_direction_t sai_macsec_direction_t
MACsec direction types For PHY ASIC Egress is system to line direction and ingress is the opposite.
_sai_macsec_attr_t
Attribute Id for sai_macsec.
Definition saimacsec.h:74
sai_status_t(* sai_create_macsec_sa_fn)(_Out_ sai_object_id_t *macsec_sa_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create a MACsec Secure Association.
Definition saimacsec.h:1304
_sai_macsec_port_stat_t
MACsec port counter IDs in sai_get_macsec_stats() call.
Definition saimacsec.h:408
sai_status_t(* sai_get_macsec_flow_attribute_fn)(_In_ sai_object_id_t macsec_flow_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get MACsec flow attribute.
Definition saimacsec.h:1141
sai_status_t(* sai_remove_macsec_port_fn)(_In_ sai_object_id_t macsec_port_id)
Delete a MACsec port.
Definition saimacsec.h:1017
sai_status_t(* sai_get_macsec_port_stats_ext_fn)(_In_ sai_object_id_t macsec_port_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters)
Get MACsec port counters extended.
Definition saimacsec.h:1073
enum _sai_macsec_sc_stat_t sai_macsec_sc_stat_t
MACsec Secure Channel counter IDs in sai_get_macsec_sc_stats() call.
sai_status_t(* sai_create_macsec_sc_fn)(_Out_ sai_object_id_t *macsec_sc_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create a MACsec Secure Channel.
Definition saimacsec.h:1204
sai_status_t(* sai_clear_macsec_flow_stats_fn)(_In_ sai_object_id_t macsec_flow_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids)
Clear MACsec flow counters.
Definition saimacsec.h:1189
sai_status_t(* sai_get_macsec_attribute_fn)(_In_ sai_object_id_t macsec_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get MACsec attribute.
Definition saimacsec.h:989
sai_status_t(* sai_remove_macsec_flow_fn)(_In_ sai_object_id_t macsec_flow_id)
Delete a MACsec flow.
Definition saimacsec.h:1117
sai_status_t(* sai_get_macsec_sc_stats_ext_fn)(_In_ sai_object_id_t macsec_sc_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters)
Get MACsec Secure Channel counters extended.
Definition saimacsec.h:1273
sai_status_t(* sai_create_macsec_flow_fn)(_Out_ sai_object_id_t *macsec_flow_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create a MACsec flow.
Definition saimacsec.h:1104
sai_status_t(* sai_create_macsec_port_fn)(_Out_ sai_object_id_t *macsec_port_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create a MACsec port.
Definition saimacsec.h:1004
sai_status_t(* sai_remove_macsec_sa_fn)(_In_ sai_object_id_t macsec_sa_id)
Delete a MACsec Secure Association.
Definition saimacsec.h:1317
_sai_macsec_port_attr_t
Attribute Id for sai_macsec_port.
Definition saimacsec.h:336
sai_status_t(* sai_get_macsec_flow_stats_ext_fn)(_In_ sai_object_id_t macsec_flow_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters)
Get MACsec flow counters extended.
Definition saimacsec.h:1173
enum _sai_macsec_flow_stat_t sai_macsec_flow_stat_t
MACsec flow counter IDs in sai_get_macsec_stats() call.
sai_status_t(* sai_set_macsec_flow_attribute_fn)(_In_ sai_object_id_t macsec_flow_id, _In_ const sai_attribute_t *attr)
Set MACsec flow attribute.
Definition saimacsec.h:1128
sai_status_t(* sai_remove_macsec_sc_fn)(_In_ sai_object_id_t macsec_sc_id)
Delete a MACsec Secure Channel.
Definition saimacsec.h:1217
sai_status_t(* sai_get_macsec_sc_attribute_fn)(_In_ sai_object_id_t macsec_sc_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get MACsec Secure Channel attribute.
Definition saimacsec.h:1241
sai_status_t(* sai_create_macsec_fn)(_Out_ sai_object_id_t *macsec_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create a MACsec object.
Definition saimacsec.h:952
sai_status_t(* sai_get_macsec_sa_stats_ext_fn)(_In_ sai_object_id_t macsec_sa_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters)
Get MACsec Secure Association counters extended.
Definition saimacsec.h:1373
sai_status_t(* sai_get_macsec_sa_attribute_fn)(_In_ sai_object_id_t macsec_sa_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get MACsec Secure Association attribute.
Definition saimacsec.h:1341
sai_status_t(* sai_get_macsec_flow_stats_fn)(_In_ sai_object_id_t macsec_flow_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters)
Get MACsec flow counters.
Definition saimacsec.h:1156
enum _sai_macsec_sc_attr_t sai_macsec_sc_attr_t
Attribute Id for sai_macsec_sc.
struct _sai_macsec_api_t sai_macsec_api_t
MACsec methods table retrieved with sai_api_query()
enum _sai_macsec_max_secure_associations_per_sc_t sai_macsec_max_secure_associations_per_sc_t
Max number of secure associations for each secure channel.
sai_status_t(* sai_set_macsec_attribute_fn)(_In_ sai_object_id_t macsec_id, _In_ const sai_attribute_t *attr)
Set MACsec attribute.
Definition saimacsec.h:976
sai_status_t(* sai_clear_macsec_sa_stats_fn)(_In_ sai_object_id_t macsec_sa_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids)
Clear MACsec Secure Association counters.
Definition saimacsec.h:1389
_sai_macsec_sc_attr_t
Attribute Id for sai_macsec_sc.
Definition saimacsec.h:590
sai_status_t(* sai_clear_macsec_port_stats_fn)(_In_ sai_object_id_t macsec_port_id, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids)
Clear MACsec port counters.
Definition saimacsec.h:1089
enum _sai_macsec_cipher_suite_t sai_macsec_cipher_suite_t
MACsec Cipher Suites.
_sai_macsec_max_secure_associations_per_sc_t
Max number of secure associations for each secure channel.
Definition saimacsec.h:65
_sai_macsec_sa_stat_t
MACsec flow counter IDs in sai_get_macsec_sa_stats() call. Some of these counters appear as per Secur...
Definition saimacsec.h:862
@ SAI_MACSEC_FLOW_STAT_MULTICAST_PKTS_CONTROLLED
IEEE 802.1ae defined ifOutMulticastPkts or ifInMulticastPkts for MACSEC controlled port.
Definition saimacsec.h:520
@ SAI_MACSEC_FLOW_STAT_IN_PKTS_UNKNOWN_SCI
IEEE 802.1ae defined InPktsUnknownSci. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:577
@ SAI_MACSEC_FLOW_STAT_IN_PKTS_BAD_TAG
IEEE 802.1ae defined InPktsBadTag. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:565
@ SAI_MACSEC_FLOW_STAT_OUT_PKTS_TOO_LONG
IEEE 802.1ae defined OutPktsTooLong. Valid for egress, always returns 0 for ingress.
Definition saimacsec.h:553
@ SAI_MACSEC_FLOW_STAT_BROADCAST_PKTS_CONTROLLED
IEEE 802.1ae defined ifOutBroadcastPkts or ifInBroadcastPkts for MACSEC controlled port.
Definition saimacsec.h:530
@ SAI_MACSEC_FLOW_STAT_IN_PKTS_NO_TAG
IEEE 802.1ae defined InPktsNoTag. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:559
@ SAI_MACSEC_FLOW_STAT_OCTETS_UNCONTROLLED
IEEE 802.1ae defined ifOutOctets or ifInOctets for MACSEC uncontrolled port.
Definition saimacsec.h:490
@ SAI_MACSEC_FLOW_STAT_IN_TAGGED_CONTROL_PKTS
Control packets with SecTAG which are not secured (using MACsec uncontrolled port) - not in 802....
Definition saimacsec.h:547
@ SAI_MACSEC_FLOW_STAT_UCAST_PKTS_CONTROLLED
IEEE 802.1ae defined ifOutUcastPkts or ifInUcastPkts for MACSEC controlled port.
Definition saimacsec.h:510
@ SAI_MACSEC_FLOW_STAT_IN_PKTS_OVERRUN
IEEE 802.1ae defined InPktsOverrun. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:583
@ SAI_MACSEC_FLOW_STAT_OCTETS_CONTROLLED
IEEE 802.1ae defined ifOutOctets or ifInOctets for MACSEC controlled port.
Definition saimacsec.h:495
@ SAI_MACSEC_FLOW_STAT_OTHER_ERR
Packets dropped/error for In or Out interface before MACsec processing for controlled and uncontrolle...
Definition saimacsec.h:485
@ SAI_MACSEC_FLOW_STAT_OUT_OCTETS_COMMON
IEEE 802.1ae defined ifOutOctets for MACSEC common port.
Definition saimacsec.h:500
@ SAI_MACSEC_FLOW_STAT_UCAST_PKTS_UNCONTROLLED
IEEE 802.1ae defined ifOutUcastPkts or ifInUcastPkts for MACSEC uncontrolled port.
Definition saimacsec.h:505
@ SAI_MACSEC_FLOW_STAT_PKTS_UNTAGGED
IEEE 802.1ae defined OutPktsUntagged or InPktsUntagged.
Definition saimacsec.h:541
@ SAI_MACSEC_FLOW_STAT_CONTROL_PKTS
Control packets which are not secured (using MACsec uncontrolled port) - not in 802....
Definition saimacsec.h:536
@ SAI_MACSEC_FLOW_STAT_BROADCAST_PKTS_UNCONTROLLED
IEEE 802.1ae defined ifOutBroadcastPkts or ifInBroadcastPkts for MACSEC uncontrolled port.
Definition saimacsec.h:525
@ SAI_MACSEC_FLOW_STAT_IN_PKTS_NO_SCI
IEEE 802.1ae defined InPktsNoSci. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:571
@ SAI_MACSEC_FLOW_STAT_MULTICAST_PKTS_UNCONTROLLED
IEEE 802.1ae defined ifOutMulticastPkts or ifInMulticastPkts for MACSEC uncontrolled port.
Definition saimacsec.h:515
@ SAI_MACSEC_SC_STAT_SA_NOT_IN_USE
Packets that have valid SCI, but the AN value does not have associated SA - not in 802....
Definition saimacsec.h:724
@ SAI_MACSEC_SA_ATTR_CUSTOM_RANGE_START
Custom range base value.
Definition saimacsec.h:847
@ SAI_MACSEC_SA_ATTR_AUTH_KEY
MACsec Authentication Key Network Byte order.
Definition saimacsec.h:790
@ SAI_MACSEC_SA_ATTR_CUSTOM_RANGE_END
End of custom range base.
Definition saimacsec.h:852
@ SAI_MACSEC_SA_ATTR_XPN
Definition saimacsec.h:812
@ SAI_MACSEC_SA_ATTR_MINIMUM_INGRESS_XPN
Configured minimum acceptable ingress MACsec packet number (PN/XPN). Updated by value from MACsec pee...
Definition saimacsec.h:823
@ SAI_MACSEC_SA_ATTR_SC_ID
MACSEC Secure Channel object id.
Definition saimacsec.h:752
@ SAI_MACSEC_SA_ATTR_CONFIGURED_EGRESS_XPN
Configured value of next MACsec egress packet number (PN/XPN).
Definition saimacsec.h:800
@ SAI_MACSEC_SA_ATTR_CURRENT_XPN
MACsec current packet number (PN/XPN). For ingress, largest received packet number....
Definition saimacsec.h:809
@ SAI_MACSEC_SA_ATTR_START
Start of MACsec Secure Association attributes.
Definition saimacsec.h:735
@ SAI_MACSEC_SA_ATTR_MACSEC_DIRECTION
MACsec direction.
Definition saimacsec.h:743
@ SAI_MACSEC_SA_ATTR_AN
AN value (2-bit) for this Secure Channel, carried in MACsec packet SecTAG. The value must be distinct...
Definition saimacsec.h:761
@ SAI_MACSEC_SA_ATTR_MACSEC_SSCI
SSCI value for this Secure Association Host Byte Order.
Definition saimacsec.h:837
@ SAI_MACSEC_SA_ATTR_MINIMUM_XPN
Definition saimacsec.h:826
@ SAI_MACSEC_SA_ATTR_SALT
MACsec Salt used for encryption/decryption. Network Byte order.
Definition saimacsec.h:781
@ SAI_MACSEC_SA_ATTR_SAK
MACsec SAK (Secure Association Key) used for encryption/decryption. Network Byte order....
Definition saimacsec.h:770
@ SAI_MACSEC_SA_ATTR_END
End of MACsec Secure Association attributes.
Definition saimacsec.h:842
@ SAI_MACSEC_FLOW_ATTR_CUSTOM_RANGE_END
End of custom range base.
Definition saimacsec.h:474
@ SAI_MACSEC_FLOW_ATTR_SC_LIST
List of MACsec Secure Channels associated with this flow.
Definition saimacsec.h:459
@ SAI_MACSEC_FLOW_ATTR_ACL_ENTRY_LIST
List of MACsec ACL entries associated with this flow.
Definition saimacsec.h:450
@ SAI_MACSEC_FLOW_ATTR_END
End of MACsec Flow attributes.
Definition saimacsec.h:464
@ SAI_MACSEC_FLOW_ATTR_START
Start of MACsec Flow attributes.
Definition saimacsec.h:433
@ SAI_MACSEC_FLOW_ATTR_CUSTOM_RANGE_START
Custom range base value.
Definition saimacsec.h:469
@ SAI_MACSEC_FLOW_ATTR_MACSEC_DIRECTION
MACsec direction.
Definition saimacsec.h:441
@ SAI_MACSEC_ATTR_AVAILABLE_MACSEC_SC
Available MACsec Secure Channels.
Definition saimacsec.h:298
@ SAI_MACSEC_ATTR_SUPPORTED_CIPHER_SUITE_LIST
List of supported cipher-suites.
Definition saimacsec.h:139
@ SAI_MACSEC_ATTR_START
Start of MACsec attributes.
Definition saimacsec.h:78
@ SAI_MACSEC_ATTR_CUSTOM_RANGE_START
Custom range base value.
Definition saimacsec.h:324
@ SAI_MACSEC_ATTR_STATS_MODE
Global setting of read-clear or read-only for statistics read. The mode parameter for get_macsec_<foo...
Definition saimacsec.h:253
@ SAI_MACSEC_ATTR_STAG_TPID
TPID value used to identify packet S-tag.
Definition saimacsec.h:234
@ SAI_MACSEC_ATTR_FLOW_LIST
List of MACsec flow associated with this MACsec object.
Definition saimacsec.h:290
@ SAI_MACSEC_ATTR_DIRECTION
MACsec direction.
Definition saimacsec.h:86
@ SAI_MACSEC_ATTR_CTAG_TPID
TPID value used to identify packet C-tag.
Definition saimacsec.h:224
@ SAI_MACSEC_ATTR_SWITCHING_MODE_STORE_AND_FORWARD_SUPPORTED
SAI_SWITCH_SWITCHING_MODE_STORE_AND_FORWARD supported.
Definition saimacsec.h:102
@ SAI_MACSEC_ATTR_SECTAG_OFFSETS_SUPPORTED
List of supported SecTAG offset values for both ingress parsing and for egress.
Definition saimacsec.h:188
@ SAI_MACSEC_ATTR_SUPPORTED_PORT_LIST
List of ports that can support MACsec.
Definition saimacsec.h:273
@ SAI_MACSEC_ATTR_STATS_MODE_READ_SUPPORTED
SAI_STATS_MODE_READ supported.
Definition saimacsec.h:110
@ SAI_MACSEC_ATTR_XPN_64BIT_SUPPORTED
Indicates if 64-bit Extended Packer Number (PN) is supported. This is deprecated, subsumed under SAI_...
Definition saimacsec.h:159
@ SAI_MACSEC_ATTR_MAX_SECURE_ASSOCIATIONS_PER_SC
MACsec Secure Associations Limit.
Definition saimacsec.h:314
@ SAI_MACSEC_ATTR_AVAILABLE_MACSEC_SA
Available MACsec Secure Associations.
Definition saimacsec.h:306
@ SAI_MACSEC_ATTR_GCM_AES256_SUPPORTED
Indicates if GCM-AES256 cipher-suite is supported. This is deprecated, subsumed under SAI_MACSEC_ATTR...
Definition saimacsec.h:179
@ SAI_MACSEC_ATTR_WARM_BOOT_SUPPORTED
Warm boot is supported for all saimacsec objects.
Definition saimacsec.h:205
@ SAI_MACSEC_ATTR_END
End of MACsec attributes.
Definition saimacsec.h:319
@ SAI_MACSEC_ATTR_CUSTOM_RANGE_END
End of custom range base.
Definition saimacsec.h:329
@ SAI_MACSEC_ATTR_SWITCHING_MODE_CUT_THROUGH_SUPPORTED
SAI_SWITCH_SWITCHING_MODE_CUT_THROUGH supported.
Definition saimacsec.h:94
@ SAI_MACSEC_ATTR_STATS_MODE_READ_CLEAR_SUPPORTED
SAI_STATS_MODE_READ_CLEAR supported.
Definition saimacsec.h:118
@ SAI_MACSEC_ATTR_WARM_BOOT_ENABLE
When false disables creation of saimacsec objects during warm-boot.
Definition saimacsec.h:214
@ SAI_MACSEC_ATTR_AVAILABLE_MACSEC_FLOW
Available MACsec flows.
Definition saimacsec.h:281
@ SAI_MACSEC_ATTR_MAX_VLAN_TAGS_PARSED
Maximum number of VLAN tags to parse.
Definition saimacsec.h:243
@ SAI_MACSEC_ATTR_PN_32BIT_SUPPORTED
Indicates if 32-bit Packer Number (PN) is supported. This is deprecated, subsumed under SAI_MACSEC_AT...
Definition saimacsec.h:149
@ SAI_MACSEC_ATTR_SCI_IN_INGRESS_MACSEC_ACL
Indicates if ingress can use SCI only as an ACL field.
Definition saimacsec.h:131
@ SAI_MACSEC_ATTR_SYSTEM_SIDE_MTU
MACsec MTU capability on system side (not including MACsec overhead).
Definition saimacsec.h:197
@ SAI_MACSEC_ATTR_GCM_AES128_SUPPORTED
Indicates if GCM-AES128 cipher-suite is supported. This is deprecated, subsumed under SAI_MACSEC_ATTR...
Definition saimacsec.h:169
@ SAI_MACSEC_ATTR_PHYSICAL_BYPASS_ENABLE
Enables physical bypass of MACsec module. Packets can physically bypass MACsec module only when there...
Definition saimacsec.h:264
@ SAI_MACSEC_PORT_STAT_DATA_PKTS
Packets classified as data packets for MACsec processing, not in 802.1ae MIB.
Definition saimacsec.h:422
@ SAI_MACSEC_PORT_STAT_PRE_MACSEC_DROP_PKTS
Malformed packets dropped before MACsec processing, not in 802.1ae MIB.
Definition saimacsec.h:412
@ SAI_MACSEC_PORT_STAT_CONTROL_PKTS
Packets classified as control packets for MACsec processing, not in 802.1ae MIB.
Definition saimacsec.h:417
@ SAI_MACSEC_PORT_ATTR_END
End of MACsec Port attributes.
Definition saimacsec.h:391
@ SAI_MACSEC_PORT_ATTR_CUSTOM_RANGE_END
End of custom range base.
Definition saimacsec.h:401
@ SAI_MACSEC_PORT_ATTR_CTAG_ENABLE
Enable vlan tag parsing for C-tag TPID.
Definition saimacsec.h:366
@ SAI_MACSEC_PORT_ATTR_START
Start of MACsec Port attributes.
Definition saimacsec.h:340
@ SAI_MACSEC_PORT_ATTR_STAG_ENABLE
Enable vlan tag parsing for S-tag TPID.
Definition saimacsec.h:375
@ SAI_MACSEC_PORT_ATTR_SWITCH_SWITCHING_MODE
Switching mode for port. If configured as cut-through, the IPG for Tx MAC in the switch ASIC has to b...
Definition saimacsec.h:386
@ SAI_MACSEC_PORT_ATTR_MACSEC_DIRECTION
MACsec direction.
Definition saimacsec.h:348
@ SAI_MACSEC_PORT_ATTR_PORT_ID
Associated port id.
Definition saimacsec.h:357
@ SAI_MACSEC_PORT_ATTR_CUSTOM_RANGE_START
Custom range base value.
Definition saimacsec.h:396
@ SAI_MACSEC_SC_ATTR_MACSEC_SECTAG_OFFSET
SecTAG offset for this Secure Channel with respect to 802.1ae standard SecTAG location.
Definition saimacsec.h:641
@ SAI_MACSEC_SC_ATTR_SA_LIST
MACsec SA list.
Definition saimacsec.h:679
@ SAI_MACSEC_SC_ATTR_MACSEC_REPLAY_PROTECTION_ENABLE
Replay protection enable for this Secure Channel.
Definition saimacsec.h:660
@ SAI_MACSEC_SC_ATTR_ACTIVE_EGRESS_SA_ID
Active MACsec SA identifier.
Definition saimacsec.h:650
@ SAI_MACSEC_SC_ATTR_MACSEC_EXPLICIT_SCI_ENABLE
Explicit SCI enable for this Secure Channel.
Definition saimacsec.h:631
@ SAI_MACSEC_SC_ATTR_END
End of MACsec Secure Channel attributes.
Definition saimacsec.h:701
@ SAI_MACSEC_SC_ATTR_MACSEC_CIPHER_SUITE
Cipher suite for this Secure Channel.
Definition saimacsec.h:687
@ SAI_MACSEC_SC_ATTR_MACSEC_DIRECTION
MACsec direction.
Definition saimacsec.h:602
@ SAI_MACSEC_SC_ATTR_CUSTOM_RANGE_END
End of custom range base.
Definition saimacsec.h:711
@ SAI_MACSEC_SC_ATTR_CUSTOM_RANGE_START
Custom range base value.
Definition saimacsec.h:706
@ SAI_MACSEC_SC_ATTR_MACSEC_REPLAY_PROTECTION_WINDOW
Replay protection window for this Secure Channel.
Definition saimacsec.h:670
@ SAI_MACSEC_SC_ATTR_START
Start of MACsec Secure Channel attributes.
Definition saimacsec.h:594
@ SAI_MACSEC_SC_ATTR_MACSEC_SCI
SCI value for this Secure Channel, carried in MACsec packet SecTAG. The MAC address of SCI is stored ...
Definition saimacsec.h:621
@ SAI_MACSEC_SC_ATTR_ENCRYPTION_ENABLE
True means encryption is enabled. False means encryption is disabled.
Definition saimacsec.h:696
@ SAI_MACSEC_SC_ATTR_FLOW_ID
MACsec flow object id.
Definition saimacsec.h:611
@ SAI_MACSEC_SA_STAT_IN_PKTS_LATE
The sum of this count over Secure Associations gives 802.1ae statistics InPktsLate....
Definition saimacsec.h:909
@ SAI_MACSEC_SA_STAT_OCTETS_ENCRYPTED
The sum of this count over all Secure Associations of a Secure Channel gives 802.1ae statistics outOc...
Definition saimacsec.h:868
@ SAI_MACSEC_SA_STAT_IN_PKTS_OK
IEEE 802.1ae defined InPktsOk. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:939
@ SAI_MACSEC_SA_STAT_IN_PKTS_UNUSED_SA
IEEE 802.1ae defined InPktsUnusedSA. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:933
@ SAI_MACSEC_SA_STAT_IN_PKTS_UNCHECKED
The sum of this count over Secure Associations gives 802.1ae statistics InPktsUnchecked....
Definition saimacsec.h:895
@ SAI_MACSEC_SA_STAT_IN_PKTS_DELAYED
The sum of this count over Secure Associations gives 802.1ae statistics InPktsDelayed....
Definition saimacsec.h:902
@ SAI_MACSEC_SA_STAT_IN_PKTS_INVALID
IEEE 802.1ae defined InPktsInvalid. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:915
@ SAI_MACSEC_SA_STAT_OCTETS_PROTECTED
The sum of this count over Secure Associations gives 802.1ae statistics outOctetsProtected for egress...
Definition saimacsec.h:874
@ SAI_MACSEC_SA_STAT_OUT_PKTS_PROTECTED
The sum of this count over Secure Associations gives 802.1ae statistics OutPktsProtected....
Definition saimacsec.h:888
@ SAI_MACSEC_SA_STAT_IN_PKTS_NOT_USING_SA
IEEE 802.1ae defined InPktsNotUsingSA. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:927
@ SAI_MACSEC_SA_STAT_OUT_PKTS_ENCRYPTED
The sum of this count over Secure Associations gives 802.1ae statistics OutPktsEncrypted....
Definition saimacsec.h:881
@ SAI_MACSEC_SA_STAT_IN_PKTS_NOT_VALID
IEEE 802.1ae defined InPktsNotValid. Valid for ingress, always returns 0 for egress.
Definition saimacsec.h:921
enum _sai_stats_mode_t sai_stats_mode_t
SAI statistics modes.
This module defines SAI portable types.
MACsec methods table retrieved with sai_api_query()
Definition saimacsec.h:1398