12typedef __u32 PortId_t;
13typedef __u64 Timestamp_t;
14typedef __u8 ClassOfService_t;
15typedef __u16 CloneSessionId_t;
16typedef __u32 MulticastGroup_t;
17typedef __u16 EgressInstance_t;
20typedef __u8 PSA_PacketPath_t;
22static const PSA_PacketPath_t NORMAL = 0;
23static const PSA_PacketPath_t NORMAL_UNICAST = 1;
24static const PSA_PacketPath_t NORMAL_MULTICAST = 2;
25static const PSA_PacketPath_t CLONE_I2E = 3;
26static const PSA_PacketPath_t CLONE_E2E = 4;
27static const PSA_PacketPath_t RESUBMIT = 5;
28static const PSA_PacketPath_t RECIRCULATE = 6;
31typedef __u8 ParserError_t;
32static const ParserError_t NoError = 0;
33static const ParserError_t PacketTooShort = 1;
34static const ParserError_t NoMatch = 2;
35static const ParserError_t StackOutOfBounds = 3;
36static const ParserError_t HeaderTooShort = 4;
37static const ParserError_t ParserTimeout = 5;
38static const ParserError_t ParserInvalidArgument = 6;
41enum PSA_MeterColor_t { RED, GREEN, YELLOW };
46 PortId_t ingress_port;
47 PSA_PacketPath_t packet_path;
48} __attribute__((aligned(4)));
53 PortId_t ingress_port;
54 PSA_PacketPath_t packet_path;
55 Timestamp_t ingress_timestamp;
56 ParserError_t parser_error;
57} __attribute__((aligned(4)));;
62 MulticastGroup_t multicast_group;
64 ClassOfService_t class_of_service;
66 CloneSessionId_t clone_session_id;
69} __attribute__((aligned(4)));
77 PSA_PacketPath_t packet_path;
78} __attribute__((aligned(4)));
81 ClassOfService_t class_of_service;
83 PSA_PacketPath_t packet_path;
84 EgressInstance_t instance;
87 Timestamp_t egress_timestamp;
88 ParserError_t parser_error;
89} __attribute__((aligned(4)));
95 CloneSessionId_t clone_session_id;
97} __attribute__((aligned(4)));
100 PortId_t egress_port;
101} __attribute__((aligned(4)));
108 PSA_PacketPath_t packet_path;
112} __attribute__((aligned(4)));
117 __u8 class_of_service;
119 __u16 packet_length_bytes;
120} __attribute__((aligned(4)));
Definition ebpf/runtime/psa.h:114