On 17 Feb 2021, at 18:41, William Tu wrote:

>>
>>>>  Information Rate). High priority traffic is routed to queue 10,
>>>> which marks
>>>>  all traffic as CIR, i.e. Green. All low priority traffic, queue 20,
>>>> is
>>>>  marked as EIR, i.e. Yellow::
>>>>
>>>>      $ ovs-vsctl --timeout=5 set port dpdk1 qos=@myqos -- \
>>>>          --id=@myqos create qos type=trtcm-policer \
>>>> -        other-config:cir=52000 other-config:cbs=2048 \
>>>> -        other-config:eir=52000 other-config:ebs=2048  \
>>
>> 52000 is fine as our documentation states cir, eir are in bytes per
>> second, minus the ethernet header.
>> So (64-12) * 1000 = 52000
>
> How come it's not minus 14-byte ethernet header?

You are right, it should be 14, miscounted the rte_ether_hdr structure size :(

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to