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/ena: refactor getting IO queues capabilities
[dpdk.git]
/
doc
/
guides
/
sample_app_ug
/
timer.rst
diff --git
a/doc/guides/sample_app_ug/timer.rst
b/doc/guides/sample_app_ug/timer.rst
index
d87a7ab
..
98d762d
100644
(file)
--- a/
doc/guides/sample_app_ug/timer.rst
+++ b/
doc/guides/sample_app_ug/timer.rst
@@
-17,7
+17,7
@@
The application is located in the ``timer`` sub-directory.
Running the Application
-----------------------
Running the Application
-----------------------
-To run the example in linux
app
environment:
+To run the example in linux environment:
.. code-block:: console
.. code-block:: console
@@
-137,7
+137,7
@@
In this case, the timer is stopped using the rte_timer_stop() function.
/* timer0 callback */
static void
/* timer0 callback */
static void
- timer0_cb(
attribute ((unused)) struct rte_timer *tim, __attribute ((unused))
void *arg)
+ timer0_cb(
__rte_unused struct rte_timer *tim, __rte_unused
void *arg)
{
static unsigned counter = 0;
{
static unsigned counter = 0;
@@
-159,7
+159,7
@@
rte_timer_reset() function:
/* timer1 callback */
static void
/* timer1 callback */
static void
- timer1_cb(
attribute ((unused)) struct rte_timer *tim, _attribute ((unused))
void *arg)
+ timer1_cb(
__rte_unused struct rte_timer *tim, __rte_unused
void *arg)
{
unsigned lcore_id = rte_lcore_id();
uint64_t hz;
{
unsigned lcore_id = rte_lcore_id();
uint64_t hz;