Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DFrol1
Beginner
367 Views

dpdk tm ( dpdk traffic management) Intel XL710 NIC. How do shapers work without buffers ?

19.05.0-rc2

file: driver/net/i40e/i40e_tm.c :

=================================

 

static int

i40e_shaper_profile_param_check(struct rte_tm_shaper_params *profile,

            struct rte_tm_error *error)

{

   /* min rate not supported */

   if (profile->committed.rate) {

      error->type = RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_RATE;

      error->message = "committed rate not supported";

      return -EINVAL;

   }

   /* min bucket size not supported */

   if (profile->committed.size) {

      error->type = RTE_TM_ERROR_TYPE_SHAPER_PROFILE_COMMITTED_SIZE;

      error->message = "committed bucket size not supported";

      return -EINVAL;

   }

   /* max bucket size not supported */

   if (profile->peak.size) {

      error->type = RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PEAK_SIZE;

      error->message = "peak bucket size not supported";

      return -EINVAL;

   }

   /* length adjustment not supported */

   if (profile->pkt_length_adjust) {

      error->type = RTE_TM_ERROR_TYPE_SHAPER_PROFILE_PKT_ADJUST_LEN;

      error->message = "packet length adjustment not supported";

      return -EINVAL;

   }

 

   return 0;

}

==========================

So, how could i create shaper ( rate limiter) without any buffers? No committed.size, no peak.size ? How would token bucket works without buffer?

 

Tags (1)
0 Kudos
0 Replies
Reply