BroadView™ API Guide and Reference Manual
|
Functions | |
BVIEW_STATUS | sbapi_pt_5_tuple_profile_create (int asic, int request_id, BVIEW_PORT_MASK_t *port_list, PT_5_TUPLE_PARAMS_t *tuple_params) |
BVIEW_STATUS | sbapi_pt_5_tuple_profile_delete (int asic, int request_id) |
BVIEW_STATUS | sbapi_pt_asic_supported_drop_reason_get_cb (int asic, BVIEW_PT_DROP_REASON_MASK_t *mask) |
Get Mask of ASIC Configurable drop reasons. | |
BVIEW_STATUS | sbapi_pt_clear_drop_reason_cb (int asic) |
Clear all configured Drop Reasons. | |
BVIEW_STATUS | sbapi_pt_drop_counter_get_cb (int asic, BVIEW_PT_DROP_COUNTER_REPORT_t *data, BVIEW_TIME_t *time) |
Obtain Drop Counter Report for all Drop Reasons. | |
BVIEW_STATUS | sbapi_pt_drop_reason_config_get_cb (int asic, BVIEW_PT_DROP_REASON_CONFIG_t *config) |
Get Packet Trace configuration. | |
BVIEW_STATUS | sbapi_pt_drop_reason_config_set (int asic, BVIEW_PT_DROP_REASON_CONFIG_t *config) |
Set Packet Trace configuration Paramters. | |
BVIEW_STATUS | sbapi_pt_register_trigger_cb (int asic, BVIEW_PT_TRIGGER_CALLBACK_t callback, void *cookie) |
Register hw trigger callback. | |
BVIEW_STATUS | sbapi_pt_trace_profile_get_cb (int asic, int port, BVIEW_PT_PACKET_t *packet, BVIEW_PT_TRACE_PROFILE_t *traceProfile, BVIEW_TIME_t *time) |
Obtain Trace Profile for a given packet. | |
BVIEW_STATUS sbapi_pt_asic_supported_drop_reason_get_cb | ( | int | asic, |
BVIEW_PT_DROP_REASON_MASK_t * | mask | ||
) |
Get Mask of ASIC Configurable drop reasons.
[in] | asic | unit |
[out] | mask | Mask of drop reasons |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Device stat get is successful |
BVIEW_STATUS_UNSUPPORTED | Device stat get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_pt_clear_drop_reason_cb | ( | int | asic | ) |
Clear all configured Drop Reasons.
[in] | asic | unit |
[out] | data | i_sp structure |
[out] | time | time |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Ingress Service Pools stat get is successful |
BVIEW_STATUS_UNSUPPORTED | Ingress Service Pools stat get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_pt_drop_counter_get_cb | ( | int | asic, |
BVIEW_PT_DROP_COUNTER_REPORT_t * | data, | ||
BVIEW_TIME_t * | time | ||
) |
Obtain Drop Counter Report for all Drop Reasons.
[in] | asic | unit |
[out] | data | i_p_sp data structure |
[out] | time | time |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Ingress Port + Service Pools stat get is successful |
BVIEW_STATUS_UNSUPPORTED | Ingress Port + Service Pools stat get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_pt_drop_reason_config_get_cb | ( | int | asic, |
BVIEW_PT_DROP_REASON_CONFIG_t * | config | ||
) |
Get Packet Trace configuration.
[in] | asic | Unit number |
[out] | config | Packet Trace config structure |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Packet Trace config get is successful |
BVIEW_STATUS_UNSUPPORTED | Packet Trace config get functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_pt_drop_reason_config_set | ( | int | asic, |
BVIEW_PT_DROP_REASON_CONFIG_t * | config | ||
) |
Set Packet Trace configuration Paramters.
[in] | asic | Unit number |
[in] | config | Packet Trace config structure |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Packet Trace config set is successful |
BVIEW_STATUS_UNSUPPORTED | Packet Trace config set functionality is not supported on this unit |
none
BVIEW_STATUS sbapi_pt_register_trigger_cb | ( | int | asic, |
BVIEW_PT_TRIGGER_CALLBACK_t | callback, | ||
void * | cookie | ||
) |
Register hw trigger callback.
[in] | asic | unit |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Callback is successfully registered |
BVIEW_STATUS_UNSUPPORTED | Trigger callback registration is not supported |
none
BVIEW_STATUS sbapi_pt_trace_profile_get_cb | ( | int | asic, |
int | port, | ||
BVIEW_PT_PACKET_t * | packet, | ||
BVIEW_PT_TRACE_PROFILE_t * | traceProfile, | ||
BVIEW_TIME_t * | time | ||
) |
Obtain Trace Profile for a given packet.
[in] | asic | unit |
[out] | traceProfile | Trace Profile Data Struture |
[out] | time | time |
BVIEW_STATUS_FAILURE | Due to lock acquistion failure or Not able to get asic type of this unit or Packet Trace feature is not present or Packet Trace south bound function has returned failure |
BVIEW_STATUS_SUCCESS | Ingress Port + Priority Groups stat get is successful |
BVIEW_STATUS_UNSUPPORTED | Ingress Port + Priority Groups stat get functionality is not supported on this unit |
none