From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by dpdk.org (Postfix) with ESMTP id 36F037E74 for ; Fri, 17 Oct 2014 23:51:36 +0200 (CEST) Received: by mail-qg0-f53.google.com with SMTP id q107so1227910qgd.12 for ; Fri, 17 Oct 2014 14:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XCiAMCXiN/NqCD+8E7Ss0/GMC3w44Q/PcyYgQVDwHPw=; b=S2caBMbqfHGaCOJ8vsUxiyEpxJADv2Yy7e0QjwhA+WQJ53MnKyPrJPoQxLy1qXDUPx HUyr+FN0kFOtK430UisTTAw7zeBVE+9W1DoPf/rxPU/78zkGCY4CVnO+PN96HEo3E7OE lnG9CJmXaNpeM9zQvdi8Qn6AtR2vL+gKGTzzIR/LpCrmyqXZjWKjq2zZjDawvRvl62YV fY0fBjDtjBbqBlgBXR8ye5IWro9oQjSpfYTq79yCzpUgNJPyp4yt5tFGSdPsnva/UuLt BgZpWqEV9p9KVuhCN7hr4xuXCDf7ZTPi4ZjeRbr05moZMiqZDwuV0AHgKM07xhQ028vY Y1fw== MIME-Version: 1.0 X-Received: by 10.140.17.67 with SMTP id 61mr15175092qgc.59.1413583175117; Fri, 17 Oct 2014 14:59:35 -0700 (PDT) Received: by 10.140.82.41 with HTTP; Fri, 17 Oct 2014 14:59:35 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Oct 2014 14:59:35 -0700 Message-ID: From: satish To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Dynamic port/pipe QoS configuration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2014 21:51:36 -0000 Hi, Can someone please respond to below? Thank you. On Mon, Oct 13, 2014 at 3:54 PM, satish wrote: > Hi, > We are trying to provide QoS support for one of our clients using > rte_sched. > In our implementation we are treating each pipe as a customer. > So, we can have maximum of 4096 customers per sub-port. > Customers(pipe) can be added, deleted or modified dynamically. Each > customer can have different profiles. > > Currently we are using DPDK-v1.6. > Can I modify pipe profile during run time using rte_sched_pipe_config ()? > > Our plan is to have initial configs as below (similar to examples in DPDK) > [1] Specify port params at the initialization of port as below > static struct rte_sched_port_params port_param = { > : > : > .n_subports_per_port = 1, > .n_pipes_per_subport = 4096, > .qsize = {64, 64, 64, 64}, > .pipe_profiles = pipe_profile, > .n_pipe_profiles = 1, > } > > [2] > static struct rte_sched_subport_params subport_param[] = { > { > .tb_rate = Link speed (1G/10G..) divided by 8 (bits), > .tb_size = 1000000, > > .tc_rate = {Same as tb_rate, Same as tb_rate, Same as tb_rate, Same as > tb_rate}, > .tc_period = 10, > }, > }; > > [3] > static struct rte_sched_pipe_params pipe_profile[] = { > { /* Profile #0 */ > .tb_rate = Link speed (1G/10G..) divided by 8 (bits)/4096 (maximum number > of pipes), > .tb_size = 1000000, > > .tc_rate = {pipe's tb_rate, pipe's tb_rate, pipe's tb_rate, pipe's > tb_rate}, > .tc_period = 40, > > .wrr_weights = {16, 4, 2, 1, 16, 4, 2, 1, 16, 4, 2, 1, 16, 4, 2, 1}, > }, > }; > > Our plan here is to initialize the pipe with default profile and modify > each pipe based on user configurations. > My questions are > [a] Can I modify pipe profile during run time using rte_sched_pipe_config > ()? (question repeated) > If I can modify at pipe level, > [b] Can we have different profiles for pipes, With one default profile at > initialization? > [c] Can we modify port level params without deleting the port using > rte_sched_port_config ()? > > Please provide your valuable comments. > Thanks in advance. > > -- > Regards, > Satish Babu > > -- Regards, Satish Babu