doc: no more bare metal environment
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
98a1648109
commit
d737e95480
@ -300,7 +300,7 @@ Misc
|
|||||||
|
|
||||||
* rte.doc.mk: Documentation in the development kit framework
|
* rte.doc.mk: Documentation in the development kit framework
|
||||||
|
|
||||||
* rte.gnuconfigure.mk: Build an application that is configure-based (used to compile *newlib*).
|
* rte.gnuconfigure.mk: Build an application that is configure-based.
|
||||||
|
|
||||||
* rte.subdir.mk: Build several directories in the development kit framework.
|
* rte.subdir.mk: Build several directories in the development kit framework.
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ This is achieved as follows:
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
ret = rte_eal_init(argc, argv);
|
ret = rte_eal_init(argc, argv);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
@ -85,7 +85,7 @@ This is done in the main() function using the following code:
|
|||||||
|
|
||||||
int
|
int
|
||||||
|
|
||||||
MAIN(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
|
||||||
{
|
{
|
||||||
ret = rte_eal_init(argc, argv);
|
ret = rte_eal_init(argc, argv);
|
||||||
|
@ -165,7 +165,7 @@ The following sections describe aspects that are specific to the L3 Forwarding w
|
|||||||
Power Library Initialization
|
Power Library Initialization
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The Power library is initialized in the MAIN routine.
|
The Power library is initialized in the main routine.
|
||||||
It changes the P-state governor to userspace for specific cores that are under control.
|
It changes the P-state governor to userspace for specific cores that are under control.
|
||||||
The Timer library is also initialized and several timers are created later on,
|
The Timer library is also initialized and several timers are created later on,
|
||||||
responsible for checking if it needs to scale down frequency at run time by checking CPU utilization statistics.
|
responsible for checking if it needs to scale down frequency at run time by checking CPU utilization statistics.
|
||||||
@ -176,7 +176,7 @@ responsible for checking if it needs to scale down frequency at run time by chec
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
int MAIN(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct lcore_conf *qconf;
|
struct lcore_conf *qconf;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -182,7 +182,7 @@ Core Application - qw
|
|||||||
EAL and Drivers Setup
|
EAL and Drivers Setup
|
||||||
^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The EAL arguments are parsed at the beginning of the MAIN() function:
|
The EAL arguments are parsed at the beginning of the main() function:
|
||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ The quota and low_watermark shared variables are put into an rte_memzone using a
|
|||||||
low_watermark = (unsigned int *) qw_memzone->addr + sizeof(int);
|
low_watermark = (unsigned int *) qw_memzone->addr + sizeof(int);
|
||||||
}
|
}
|
||||||
|
|
||||||
These two variables are initialized to a default value in MAIN() and
|
These two variables are initialized to a default value in main() and
|
||||||
can be changed while qw is running using the qwctl control program.
|
can be changed while qw is running using the qwctl control program.
|
||||||
|
|
||||||
Application Arguments
|
Application Arguments
|
||||||
|
@ -103,7 +103,7 @@ stop
|
|||||||
quit
|
quit
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
Quit to prompt in Linux or reboot on Baremetal:
|
Quit to prompt:
|
||||||
|
|
||||||
quit
|
quit
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user