Beispiel #1
0
void of_meter_config_reply_cbk_fn (struct of_msg *msg,
    uint64_t  controller_handle,
    uint64_t  domain_handle,
    uint64_t  datapath_handle,
    void     *cbk_arg1,
    void     *cbk_arg2,
    uint8_t   status,
    struct ofi_meter_rec_info *meter_record_p,
    uint32_t more_meters)
{
  struct ofi_meter_band *band_entry_p;

  OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"Entered ...calling ucm handlers");
#ifdef CNTRL_OFCLI_SUPPORT
  cntrl_ucm_send_multipart_response(OFPMP_METER_CONFIG, meter_record_p, more_meters);
#endif
  if(msg != NULL)
    msg->desc.free_cbk(msg);

  if (meter_record_p)
  {
    OF_LIST_REMOVE_HEAD_AND_SCAN(meter_record_p->meter_band_list, band_entry_p,struct ofi_meter_band *,OF_METER_BAND_LISTNODE_OFFSET)
    {
      OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"deleting band");
    }
  }
}
Beispiel #2
0
void of_group_desc_reply_cbk_fn (struct of_msg *msg,
    uint64_t  controller_handle,
    uint64_t  domain_handle,
    uint64_t  datapath_handle,
    void     *cbk_arg1,
    void     *cbk_arg2,
    uint8_t   status,
    struct ofi_group_desc_info *group_desc_p,
    uint32_t more_groups)
{
  struct ofi_action *action_p;
  struct ofi_bucket *bucket_entry_p;

  OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"Entered ...calling ucm handlers");
#ifdef CNTRL_OFCLI_SUPPORT
  cntrl_ucm_send_multipart_response(OFPMP_GROUP_DESC, group_desc_p, more_groups);
#endif
  if(msg != NULL)
    msg->desc.free_cbk(msg);

  if (group_desc_p)
  {
    OF_LIST_REMOVE_HEAD_AND_SCAN(group_desc_p->bucket_list, bucket_entry_p,struct ofi_bucket *,OF_BUCKET_LISTNODE_OFFSET)
    {
      OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"deleting bucket");
      OF_LIST_REMOVE_HEAD_AND_SCAN(bucket_entry_p->action_list,action_p,struct ofi_action *,OF_ACTION_LISTNODE_OFFSET);
    }
  }
}
Beispiel #3
0
void of_switch_info_reply_cbk_fn(struct of_msg *msg,
                                 uint64_t  domain_handle,
                                 struct ofi_switch_info *switch_info_p)
{
  OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"Entered ...calling ucm handlers");
#ifdef CNTRL_OFCLI_SUPPORT
  cntrl_ucm_send_multipart_response(OFPMP_DESC, switch_info_p, TRUE);
#endif
  if(msg != NULL)
    msg->desc.free_cbk(msg);

}
void of_ipopts_config_response_cbk_fn(uint64_t  controller_handle,
    uint64_t  domain_handle,
    uint64_t  datapath_handle,
    struct of_msg *msg,
    void     *cbk_arg1,
    void     *cbk_arg2,
    uint8_t  status,
    struct ofl_switch_config *switch_config)
{

  OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"Entered ...calling ucm handlers");
#ifdef CNTRL_OFCLI_SUPPORT
  cntrl_ucm_send_multipart_response(OFPMP_IPOPTS_DESC, switch_config, TRUE);
#endif
}
Beispiel #5
0
void of_meter_features_reply_cbk_fn( struct of_msg *msg, 
    uint64_t  controller_handle,
    uint64_t  domain_handle,
    uint64_t  datapath_handle,
    void     *cbk_arg1,
    void     *cbk_arg2,
    uint8_t   status,
    struct ofi_meter_features_info *meter_features_p)
{
  OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"Entered ...calling ucm handlers");
#ifdef CNTRL_OFCLI_SUPPORT
  cntrl_ucm_send_multipart_response(OFPMP_METER_FEATURES, meter_features_p, TRUE);
#endif
  if(msg != NULL)
    msg->desc.free_cbk(msg);
}
Beispiel #6
0
void of_group_stats_reply_cbk_fn( struct of_msg *msg,
    uint64_t  controller_handle,
    uint64_t  domain_handle,
    uint64_t  datapath_handle,
    uint32_t  group_id,
    void     *cbk_arg1,
    void     *cbk_arg2,
    uint8_t   status,
    struct ofi_group_stat *group_stats,
    uint8_t   more_groups)
{
  OF_LOG_MSG(OF_LOG_MOD, OF_LOG_DEBUG,"Entered ...calling ucm handlers");
#ifdef CNTRL_OFCLI_SUPPORT
  cntrl_ucm_send_multipart_response(OFPMP_GROUP, group_stats, more_groups);
#endif
  if(msg != NULL)
    msg->desc.free_cbk(msg);
}