examples/quota_watermark: use ring space for watermarks
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Mar 2017 15:21:26 +0000 (16:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 29 Mar 2017 20:32:20 +0000 (22:32 +0200)
commiteb4562714f9fd9e284977207eb1a78066dc4b9f8
tree97657f6927fecb11de9e4c0a71acf3e670e6ddf6
parentecaed092b677d09b4b8645a3ddc38aac0ea929f7
examples/quota_watermark: use ring space for watermarks

Now that the enqueue function returns the amount of space in the ring,
we can use that to replace the old watermark functionality. Update the
example app to do so, and re-enable it in the examples Makefile.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
doc/guides/sample_app_ug/quota_watermark.rst
examples/Makefile
examples/quota_watermark/qw/init.c
examples/quota_watermark/qw/main.c
examples/quota_watermark/qw/main.h
examples/quota_watermark/qwctl/commands.c
examples/quota_watermark/qwctl/qwctl.c
examples/quota_watermark/qwctl/qwctl.h