X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fquota_watermark%2Fqwctl%2Fcommands.c;h=5cac0e179ee624750f9d3ebc75ae38d70c885b41;hb=95c7ff0548fd015bcae4b908046d9d44083ed122;hp=036bf80a6d55f960c5eda9b82c39937f00cef6ba;hpb=a0ffcb257ab8c99cf2b0c84baae8631e219fe77a;p=dpdk.git diff --git a/examples/quota_watermark/qwctl/commands.c b/examples/quota_watermark/qwctl/commands.c index 036bf80a6d..5cac0e179e 100644 --- a/examples/quota_watermark/qwctl/commands.c +++ b/examples/quota_watermark/qwctl/commands.c @@ -140,8 +140,8 @@ cmd_set_handler(__attribute__((unused)) void *parsed_result, else if (tokens->value >= *low_watermark * 100 / RING_SIZE && tokens->value <= 100) - rte_ring_set_water_mark(ring, - tokens->value * RING_SIZE / 100); + *high_watermark = tokens->value * + RING_SIZE / 100; else cmdline_printf(cl, "ring high watermark must be between %u%% and 100%%\n",