sched: remove redundant subport parameters
authorSavinay Dharmappa <savinay.dharmappa@intel.com>
Fri, 9 Oct 2020 12:39:19 +0000 (13:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 15 Oct 2020 00:14:28 +0000 (02:14 +0200)
Remove redundant data structure fields.

Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
doc/guides/rel_notes/release_20_11.rst
lib/librte_sched/rte_sched.h

index 319c768..c61d7fc 100644 (file)
@@ -326,6 +326,9 @@ API Changes
 * sched: Added ``subport_profile_id`` as argument
   to function ``rte_sched_subport_config``.
 
+* sched: Removed ``tb_rate``, ``tc_rate``, ``tc_period`` and ``tb_size``
+  from ``struct rte_sched_subport_params``.
+
 
 ABI Changes
 -----------
index 1506c64..c1a772b 100644 (file)
@@ -149,18 +149,6 @@ struct rte_sched_pipe_params {
  * byte.
  */
 struct rte_sched_subport_params {
-       /** Token bucket rate (measured in bytes per second) */
-       uint64_t tb_rate;
-
-       /** Token bucket size (measured in credits) */
-       uint64_t tb_size;
-
-       /** Traffic class rates (measured in bytes per second) */
-       uint64_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];
-
-       /** Enforcement period for rates (measured in milliseconds) */
-       uint64_t tc_period;
-
        /** Number of subport pipes.
         * The subport can enable/allocate fewer pipes than the maximum
         * number set through struct port_params::n_max_pipes_per_subport,