Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dpdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VoerEir
dpdk
Commits
594f3c1c
Commit
594f3c1c
authored
12 years ago
by
Intel
Committed by
Thomas Monjalon
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
set version to 1.3.0
Signed-off-by: Intel
parent
1d8d954b
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/librte_eal/common/include/rte_version.h
+23
-7
23 additions, 7 deletions
lib/librte_eal/common/include/rte_version.h
with
23 additions
and
7 deletions
lib/librte_eal/common/include/rte_version.h
+
23
−
7
View file @
594f3c1c
...
...
@@ -47,6 +47,11 @@ extern "C" {
#include
<stdint.h>
#include
<rte_common.h>
/**
* String that appears before the version number
*/
#define RTE_VER_PREFIX "RTE"
/**
* Major version number i.e. the x in x.y.z
*/
...
...
@@ -55,14 +60,18 @@ extern "C" {
/**
* Minor version number i.e. the y in x.y.z
*/
#define RTE_VER_MINOR
2
#define RTE_VER_MINOR
3
/**
* Patch level number i.e. the z in x.y.z
*/
#define RTE_VER_PATCH_LEVEL
3
#define RTE_VER_PATCH_LEVEL
0
#define RTE_VER_PREFIX "RTE"
/**
* Extra string to be appended to version number,
* for example: pre1, EAR, final etc.
*/
#define RTE_VER_SUFFIX ""
/**
* Function returning string of version number: "RTE x.y.z"
...
...
@@ -71,10 +80,17 @@ extern "C" {
*/
static
inline
const
char
*
rte_version
(
void
)
{
return
RTE_VER_PREFIX
" "
RTE_STR
(
RTE_VER_MAJOR
)
"."
RTE_STR
(
RTE_VER_MINOR
)
"."
RTE_STR
(
RTE_VER_PATCH_LEVEL
);
if
(
sizeof
(
RTE_VER_SUFFIX
)
>
sizeof
(
""
))
return
RTE_VER_PREFIX
" "
RTE_STR
(
RTE_VER_MAJOR
)
"."
RTE_STR
(
RTE_VER_MINOR
)
"."
RTE_STR
(
RTE_VER_PATCH_LEVEL
)
"-"
RTE_VER_SUFFIX
;
else
return
RTE_VER_PREFIX
" "
RTE_STR
(
RTE_VER_MAJOR
)
"."
RTE_STR
(
RTE_VER_MINOR
)
"."
RTE_STR
(
RTE_VER_PATCH_LEVEL
);
}
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment