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 A3B25A04EF; Tue, 2 Jun 2020 10:55:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D04F1BF73; Tue, 2 Jun 2020 10:55:42 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id 779D01BF3C for ; Tue, 2 Jun 2020 10:55:40 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id ga6so1065969pjb.1 for ; Tue, 02 Jun 2020 01:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZQ6RL2C3ERCNg+4ubxjjYPbfNwcuPLaUD2IV/1vSd4E=; b=Y+FWaCRImdkGC48JedZt1VKNE88/pqqDFW3d6GyLOZDycdlpDTZyZM6jHDpxfYBvZj 5hMRwbEL3Nxt140vKr6MrFwW19cWnpBiZMIZ4cz4NhYclJhsvQJII3PvjYC/t2G8l3wd 7PW5c7E4Rb1EX4epR5ork7xgZ29pxY7xqCrn4DOD3sRSG+MmztM5y6Bp6kJflieh7Mbu UCXBmW+mqW0bNvQneZ05+wubMATdNV4K/SXUzhYrGp+q4CDZ3rEdL7PIfAj+fcf81XLm jUsz73WFIodOnMLIQw/ZQphUMcR/c1npo2YTQE8uFbiZ1llo7UXksW30/6E84FzK+wO5 n/kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZQ6RL2C3ERCNg+4ubxjjYPbfNwcuPLaUD2IV/1vSd4E=; b=Y09Cb8V2EaIpONke5sTUMJWlnhdWHc5xhQTwkX01k83hL6am97Loc07g1d6GdEMqNI U3WuQgObLCgnfQAricRZg03KF5auq3hY0yrwO6i8GQHW6vWm+qpzc3Ej41cwGxvyCajm PAyJ7tgaQlTQUiWPAJvQRjROSpNUp+HYsX2tigBR61kEp+dbeHpos71dq2rhPCiQ6fxY TQj9gQC2Gwg8UpWo+8WNY5PW69NPHjPZkVwsDVhMHbjfY9MsqU2PXog2rLBTE8FH90a3 /thU3Palx/N9p6SYonh/mSssvYF47RrxwekwUca2DkucZFGyWiZk/DmSaf/WPnpNp079 aBtA== X-Gm-Message-State: AOAM533MZ2syQgH2ea2r5ua0rFwUpQ1wwp6BF5k/2ou8xNnyk+t3wZiI pWgzZP3nBtoYuVkVyXYcDsEbwOibmTg= X-Google-Smtp-Source: ABdhPJwbGMbvKpgN8nfA6oIJ5d+UV99mNBWHGxzTP7qC6FmkcoMlb33UsC1DgwpkCWptbbA6gyKqwA== X-Received: by 2002:a17:90a:9f95:: with SMTP id o21mr4207509pjp.91.1591088139246; Tue, 02 Jun 2020 01:55:39 -0700 (PDT) Received: from 510s.domain.name ([122.167.31.43]) by smtp.gmail.com with ESMTPSA id w24sm1681323pfn.11.2020.06.02.01.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 01:55:37 -0700 (PDT) From: Archit Pandey To: dev@dpdk.org Cc: Archit Pandey , jasvinder.singh@intel.com Date: Tue, 2 Jun 2020 14:25:28 +0530 Message-Id: <20200602085528.96650-1-architpandeynitk@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] sched: add missing 64-bit rate values 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" 64-bit support was missing from the functions pipe_profile_check and rte_sched_subport_config_pipe_profile_table. Fixes: 68c1f26d4236 ("sched: support 64-bit values") Cc: jasvinder.singh@intel.com Signed-off-by: Archit Pandey --- 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.25.1