-.. code-block:: c
-
- struct rte_meter_srtcm_params app_srtcm_params[] = {
-
- {.cir = 1000000 * 46, .cbs = 2048, .ebs = 2048},
-
- };
-
- struct rte_meter_trtcm_params app_trtcm_params[] = {
-
- {.cir = 1000000 * 46, .pir = 1500000 * 46, .cbs = 2048, .pbs = 2048},
-
- };
+.. literalinclude:: ../../../examples/qos_meter/main.c
+ :language: c
+ :start-after: Traffic meter parameters are configured in the application. 8<
+ :end-before: >8 End of traffic meter parameters are configured in the application.