22typedef __u32 PortId_t;
23typedef __u64 Timestamp_t;
24typedef __u8 ClassOfService_t;
25typedef __u16 CloneSessionId_t;
26typedef __u32 MulticastGroup_t;
27typedef __u16 EgressInstance_t;
30typedef __u8 PSA_PacketPath_t;
32static const PSA_PacketPath_t NORMAL = 0;
33static const PSA_PacketPath_t NORMAL_UNICAST = 1;
34static const PSA_PacketPath_t NORMAL_MULTICAST = 2;
35static const PSA_PacketPath_t CLONE_I2E = 3;
36static const PSA_PacketPath_t CLONE_E2E = 4;
37static const PSA_PacketPath_t RESUBMIT = 5;
38static const PSA_PacketPath_t RECIRCULATE = 6;
41typedef __u8 ParserError_t;
42static const ParserError_t NoError = 0;
43static const ParserError_t PacketTooShort = 1;
44static const ParserError_t NoMatch = 2;
45static const ParserError_t StackOutOfBounds = 3;
46static const ParserError_t HeaderTooShort = 4;
47static const ParserError_t ParserTimeout = 5;
48static const ParserError_t ParserInvalidArgument = 6;
51enum PSA_MeterColor_t { RED, GREEN, YELLOW };
56 PortId_t ingress_port;
57 PSA_PacketPath_t packet_path;
58} __attribute__((aligned(4)));
63 PortId_t ingress_port;
64 PSA_PacketPath_t packet_path;
65 Timestamp_t ingress_timestamp;
66 ParserError_t parser_error;
67} __attribute__((aligned(4)));;
72 MulticastGroup_t multicast_group;
74 ClassOfService_t class_of_service;
76 CloneSessionId_t clone_session_id;
79} __attribute__((aligned(4)));
87 PSA_PacketPath_t packet_path;
88} __attribute__((aligned(4)));
91 ClassOfService_t class_of_service;
93 PSA_PacketPath_t packet_path;
94 EgressInstance_t instance;
97 Timestamp_t egress_timestamp;
98 ParserError_t parser_error;
99} __attribute__((aligned(4)));
105 CloneSessionId_t clone_session_id;
107} __attribute__((aligned(4)));
110 PortId_t egress_port;
111} __attribute__((aligned(4)));
118 PSA_PacketPath_t packet_path;
122} __attribute__((aligned(4)));
127 __u8 class_of_service;
129 __u16 packet_length_bytes;
130} __attribute__((aligned(4)));
Definition ebpf/runtime/psa.h:124