[dpdk-dev] [PATCH] [RFC, v2]: adds support PPS(packet per second) on meter
Ajit Khaparde
ajit.khaparde at broadcom.com
Mon Mar 1 04:31:03 CET 2021
On Sun, Feb 28, 2021 at 7:16 PM Li Zhang <lizh at nvidia.com> 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]::::
More information about the dev
mailing list