st_sdk_msg.h (1801B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 6 * 7 * File: st_sdk_msg.h 8 */ 9 10 #ifndef ST_SDK_MSG_H_ 11 #define ST_SDK_MSG_H_ 12 13 #include <sal/types.h> 14 #include <soc/shared/st.h> 15 16 /* 17 * ST Initialization control message 18 */ 19 typedef struct st_sdk_msg_ctrl_init_s { 20 /* Initialization flags */ 21 uint32 flags; 22 23 /* Upper 32 bits of init time */ 24 uint32 init_time_u; 25 26 /* Lower 32 bits of init time */ 27 uint32 init_time_l; 28 29 /* Max length of the export packet */ 30 uint16 max_export_pkt_length; 31 32 /* Number of instances */ 33 uint16 num_instances; 34 35 /* Number of collectors */ 36 uint16 num_collectors; 37 38 /* Maximum number of ports to be monitored */ 39 uint16 max_num_ports; 40 } st_sdk_msg_ctrl_init_t; 41 42 /* 43 * Create PB collector 44 */ 45 typedef struct st_sdk_msg_ctrl_collector_create_s { 46 /* Flags */ 47 uint32 flags; 48 49 /* Checksum of IP header excluding length */ 50 uint32 ip_base_checksum; 51 52 /* UDP psuedo header checksum */ 53 uint32 udp_base_checksum; 54 55 /* Software handle for collector */ 56 uint16 id; 57 58 /* Length of the encapsulation */ 59 uint16 encap_length; 60 61 /* Max size of the packet that can be sent to collector */ 62 uint16 mtu; 63 64 /* Offset to start of IP header in the encap */ 65 uint16 ip_offset; 66 67 /* Offset to start of UDP header in the encap */ 68 uint16 udp_offset; 69 70 /* Number of port info to encode in a single packet */ 71 uint16 num_port_in_pkt; 72 73 /* Collector encapsulation */ 74 uint8 encap[SHR_ST_MAX_COLLECTOR_ENCAP_LENGTH]; 75 76 /* Component Id. */ 77 uint32 component_id; 78 } st_sdk_msg_ctrl_collector_create_t; 79 80 #endif /* ST_SDK_MSG_H_ */