Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fastclick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SDN PP
fastclick
Commits
87defd20
Commit
87defd20
authored
Apr 04, 2018
by
Georgios Katsikas
Committed by
Tom Barbette
Apr 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Static initialize DPDK only if enabled
Signed-off-by:
Georgios Katsikas
<
katsikas.gp@gmail.com
>
parent
98c74e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
router.cc
lib/router.cc
+5
-0
No files found.
lib/router.cc
View file @
87defd20
...
...
@@ -35,6 +35,9 @@
#include <click/notifier.hh>
#include <click/nameinfo.hh>
#include <click/bighashmap_arena.hh>
#if HAVE_DPDK
#include <click/dpdkdevice.hh>
#endif
#if HAVE_NETMAP_PACKET_POOL
#include <click/netmapdevice.hh>
#endif
...
...
@@ -1169,10 +1172,12 @@ Router::initialize(ErrorHandler *errh)
}
}
#if HAVE_DPDK
if
(
all_ok
)
{
//DPDK initialization may be affected by some configuration and needed by some element initialization (Packet::make with --enable-dpdk-packet-pool)
all_ok
=
DPDKDevice
::
static_initialize
(
ErrorHandler
::
default_handler
())
==
0
;
}
#endif
#if HAVE_BATCH
if
(
all_ok
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment