From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AA194A055D; Mon, 1 Mar 2021 04:31:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 239A240684; Mon, 1 Mar 2021 04:31:22 +0100 (CET) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by mails.dpdk.org (Postfix) with ESMTP id 74F584014E for ; Mon, 1 Mar 2021 04:31:20 +0100 (CET) Received: by mail-qt1-f172.google.com with SMTP id s15so11116012qtq.0 for ; Sun, 28 Feb 2021 19:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o6rplSSRr2RaJhq9W5LKeWWztng22D5D++/oSCIuzOk=; b=PS3IiJRupJohJ7/nPE00MizhXWsuKsZQVuJ9Kkui/+0EfCV7h+AoD4fCoYPmhWmeJe 3rJ+PhblqwHP9v6SYKSLWjvKFTeb+QFUHUDGcxSnJaSbyqKilwBemsBSYLtVUsIRRMKy CqN8bQ0hRbaIirEp7vyVa565kEqpQSm4TlLkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o6rplSSRr2RaJhq9W5LKeWWztng22D5D++/oSCIuzOk=; b=H/8Wm0CNLtCtWpHHknBYelO3JNugCUE1uHUXsNTFDCHha2D3QVIvsTx9qqw55vnS9E glLEBh1a3UZWaFbZuzLp5UsT2SGicp8bdbw46ntKM45j+6w2udTr0dpDZatXQfmaWb1c uug/vuLnh3POOQpsDctFllnpN2wLYNGBBlTNIRaBXQP3l4TsT02N5nCxNR989lIT7vKD hrB/Egcu5I8+YeMVezLP2ue6l+0JVBjWVYScvrlJC0I5Vg9wVZbzOVbSzDcbbsPYrevx vJ8vMXSeM2cRTPFflWJqwXRktEjGw1FZ8AgfjEvvYgHlLH4B/vvCUs9o7iaCJ2ifMphq JKvw== X-Gm-Message-State: AOAM533XMAZ4s8NFB4WXb0jEYGGqZcsUnKvWDIFsQNW9O/50w50EOOZI jK4M1yODA6/X1JM0RTSoARhdOV36Mhz9vb8xa9B7Sg== X-Google-Smtp-Source: ABdhPJygz0r4QwGWmIEX+wX2XfmhjKRjmVTov1i0LIGrB8+BUVfKLMmQVf+zCgijXaYSnpTXpmUP0uve5OpXwZpU9gM= X-Received: by 2002:ac8:6945:: with SMTP id n5mr11919777qtr.194.1614569479620; Sun, 28 Feb 2021 19:31:19 -0800 (PST) MIME-Version: 1.0 References: <20210125010235.1768333-2-lizh@nvidia.com> <20210125012023.1769769-1-lizh@nvidia.com> <20210125012023.1769769-2-lizh@nvidia.com> <8eb6bf7a-f317-68e0-2cdc-e0b7d675a8f1@intel.com> <98CBD80474FA8B44BF855DF32C47DC35C615E0@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35C61614@smartserver.smartshare.dk> In-Reply-To: From: Ajit Khaparde Date: Sun, 28 Feb 2021 19:31:03 -0800 Message-ID: To: Li Zhang Cc: =?UTF-8?Q?Morten_Br=C3=B8rup?= , Ferruh Yigit , Dekel Peled , Ori Kam , Slava Ovsiienko , Matan Azrad , "Dumitrescu, Cristian" , "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , Raslan Darawsheh Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000005225c505bc714016" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH] [RFC, v2]: adds support PPS(packet per second) on meter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" --0000000000005225c505bc714016 Content-Type: text/plain; charset="UTF-8" On Sun, Feb 28, 2021 at 7:16 PM Li Zhang wrote: > > Hi Morten, > > Thank you for your comments. > It is packet count instead of frames count. > So 4K TCP packet should be handle as one instead of 3 Ethernet Frames. So it is not dependent on the MTU? > > We will update the struct as below: > enum rte_mtr_algorithm { > ...... > /** Single Rate Three Color Marker, Packet based (srTCMp). +1 > * - - similar to IETF RFC 2697 but rate is packet per second. s/rate is/measured in > */ > RTE_MTR_SRTCMP, > } > > struct rte_mtr_meter_profile { > ...... > /** Items only valid when *alg* is set to srTCMp. */ > struct { > /** Committed Information Rate (CIR) > * (packets/second). > */ > uint64_t cir; > > /** Committed Burst Size (CBS) (packets). */ > uint64_t cbs; > > /** Excess Burst Size (EBS) (packets). */ > uint64_t ebs; > } srtcmp; > } > ::::[snip]:::: --0000000000005225c505bc714016--