From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB77AC433E0 for ; Mon, 15 Jun 2020 17:19:25 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 13417206D7 for ; Mon, 15 Jun 2020 17:19:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13417206D7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=zg.ht.hr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DF4F22B94; Mon, 15 Jun 2020 19:19:23 +0200 (CEST) Received: from ls405.t-com.hr (ls405.t-com.hr [195.29.150.135]) by dpdk.org (Postfix) with ESMTP id DAE962B87 for ; Mon, 15 Jun 2020 19:19:22 +0200 (CEST) Received: from ls266.t-com.hr (ls266.t-com.hr [195.29.150.94]) by ls405.t-com.hr (Postfix) with ESMTP id 92B47698A82; Mon, 15 Jun 2020 19:19:22 +0200 (CEST) Received: from ls266.t-com.hr (localhost.localdomain [127.0.0.1]) by ls266.t-com.hr (Qmlai) with ESMTP id 86F25C58244; Mon, 15 Jun 2020 19:19:22 +0200 (CEST) X-Envelope-Sender: hrvoje.habjanic@zg.ht.hr Received: from habix.doma (93-138-14-15.adsl.net.t-com.hr [93.138.14.15]) by ls266.t-com.hr (Qmali) with ESMTP id 46056120224; Mon, 15 Jun 2020 19:19:21 +0200 (CEST) Received: from habi-doma.doma (habi-doma.doma [192.168.10.192]) by habix.doma (Postfix) with ESMTPA id 567FB242; Mon, 15 Jun 2020 19:19:21 +0200 (CEST) From: Hrvoje Habjanic To: Cristian Dumitrescu , Jasvinder Singh Cc: dev@dpdk.org Date: Mon, 15 Jun 2020 19:19:05 +0200 Message-Id: <20200615171905.5377-1-hrvoje.habjanic@zg.ht.hr> X-Mailer: git-send-email 2.17.1 X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-25484.001 X-TM-AS-Result: No--4.228-10.0-31-1 X-imss-scan-details: No--4.228-10.0-31-1 X-TM-AS-User-Approved-Sender: No Subject: [dpdk-dev] [PATCH] rte_sched: fix 64-bit support in rate functions 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" Functions rte_sched_subport_config_pipe_profile_table and pipe_profile_check should also have increased rate arguments. Fixes: 68c1f26d4236 (\"sched: support 64-bit values\") Cc: jasvinder.singh@intel.com Signed-off-by: Hrvoje Habjanic --- lib/librte_sched/rte_sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index c0983ddda..be822057b 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -304,7 +304,7 @@ rte_sched_port_tc_queue(struct rte_sched_port *port, uint32_t qindex) static int pipe_profile_check(struct rte_sched_pipe_params *params, - uint32_t rate, uint16_t *qsize) + uint64_t rate, uint16_t *qsize) { uint32_t i; @@ -624,7 +624,7 @@ rte_sched_pipe_profile_convert(struct rte_sched_subport *subport, static void rte_sched_subport_config_pipe_profile_table(struct rte_sched_subport *subport, - struct rte_sched_subport_params *params, uint32_t rate) + struct rte_sched_subport_params *params, uint64_t rate) { uint32_t i; -- 2.17.1