ifa_sdk_msg.h (1714B)
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: ifa_sdk_msg.h 8 */ 9 10 #ifndef IFA_SDK_MSG_H_ 11 #define IFA_SDK_MSG_H_ 12 13 #include <soc/shared/shr_pkt.h> 14 15 /* 16 * Create IFA config information 17 */ 18 typedef struct ifa_sdk_msg_ctrl_config_info_s { 19 /* INT header ProbeMarkers Value. */ 20 uint32 probemarker_1; 21 uint32 probemarker_2; 22 23 /* In-band flow analyzer. Meta Data header Device ID */ 24 uint32 device_id; 25 26 /* INT header Maximum payload. */ 27 uint16 max_payload_length; 28 29 /* In-band flow analyzer Loopback ports for IFA E_APP in switch */ 30 uint16 lb_port_1; 31 uint16 lb_port_2; 32 33 /* Meta Data header Module ID */ 34 /* Module Id used to identify loopback source port information. */ 35 uint16 module_id; 36 37 /* The Payload packet length that can be sent to this collector.*/ 38 uint16 rx_packet_payload_length; 39 40 /* Option to send with recieved header */ 41 uint8 optional_headers; 42 43 /* INT header Hop Limit. */ 44 uint8 hop_limit; 45 46 /* Length of the IFA INT header encapsulation */ 47 uint16 int_encap_length; 48 49 /* Length of the IFA LB header encapsulation */ 50 uint16 lb_encap_length; 51 52 /* INT header encapsulation */ 53 uint8 int_encap[SHR_INT_HEADER_LENGTH]; 54 55 /* LoopBack header encapsulation */ 56 uint8 lb_encap[SHR_LB_HEADER_LENGTH]; 57 58 /* 59 * Number of hops in the topology is 60 * greater than Hop limit, IFA MD stack 61 * contains Hop limit number of MDs in 62 * MD stack. 63 */ 64 uint8 true_hop_count; 65 } ifa_sdk_msg_ctrl_config_info_t; 66 #endif /* IFA_SDK_MSG_H_ */