git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bonding: rename map file to standard name
[dpdk.git]
/
examples
/
quota_watermark
/
qwctl
/
commands.c
diff --git
a/examples/quota_watermark/qwctl/commands.c
b/examples/quota_watermark/qwctl/commands.c
index
036bf80
..
5cac0e1
100644
(file)
--- 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)
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",
else
cmdline_printf(cl,
"ring high watermark must be between %u%% and 100%%\n",