From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A7E9FA04BC; Fri, 9 Oct 2020 14:42:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5A8A81D65A; Fri, 9 Oct 2020 14:39:52 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 95C2D1D63E for ; Fri, 9 Oct 2020 14:39:44 +0200 (CEST) IronPort-SDR: V1I+K1gLO6bCQxZZTJ5/MOXsGvg2oUBS0IDVwygDgyz62jK4x4Ox2SySVx5A+4vFBj1fP8hmPn h/kEDAe7Rj+A== X-IronPort-AV: E=McAfee;i="6000,8403,9768"; a="152397608" X-IronPort-AV: E=Sophos;i="5.77,355,1596524400"; d="scan'208";a="152397608" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2020 05:39:42 -0700 IronPort-SDR: u+DqpHytLlt77QCecLurboLIO4gKSjPdLLzilTI2J/DH634k4gwUpcCT1jfUsuRThBy54StsS0 tOlq1BwfAE/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,355,1596524400"; d="scan'208";a="528914556" Received: from silpixa00400629.ir.intel.com ([10.237.214.112]) by orsmga005.jf.intel.com with ESMTP; 09 Oct 2020 05:39:41 -0700 From: Savinay Dharmappa To: cristian.dumitrescu@intel.com, jasvinder.singh@intel.com, dev@dpdk.org Cc: savinay.dharmappa@intel.com Date: Fri, 9 Oct 2020 13:39:19 +0100 Message-Id: <20201009123919.43004-9-savinay.dharmappa@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201009123919.43004-1-savinay.dharmappa@intel.com> References: <20201007140915.19491-1-savinay.dharmappa@intel.com> <20201009123919.43004-1-savinay.dharmappa@intel.com> Subject: [dpdk-dev] [PATCH v9 8/8] sched: remove redundant code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Remove redundant data structure fields. Signed-off-by: Savinay Dharmappa --- doc/guides/rel_notes/release_20_11.rst | 3 +++ lib/librte_sched/rte_sched.h | 12 ------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/doc/guides/rel_notes/release_20_11.rst b/doc/guides/rel_notes/release_20_11.rst index 85d56d46c..116969d06 100644 --- a/doc/guides/rel_notes/release_20_11.rst +++ b/doc/guides/rel_notes/release_20_11.rst @@ -296,6 +296,9 @@ ABI Changes * Added ``subport_profile_id`` as a argument to function ``rte_sched_subport_config``. + * ``tb_rate``, ``tc_rate``, ``tc_period`` and + ``tb_size`` are removed from ``struct rte_sched_subport_params``. + Known Issues ------------ diff --git a/lib/librte_sched/rte_sched.h b/lib/librte_sched/rte_sched.h index 1506c6487..c1a772b70 100644 --- a/lib/librte_sched/rte_sched.h +++ b/lib/librte_sched/rte_sched.h @@ -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, -- 2.17.1