Skip to contentSkip to conversation

Example App like skeleton, l2fwd etc. in DPDK 20.11 need static compilation else will fail during runtime

dpdk-dev [email protected] 1 participant 1 message Jan 9, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=610

Bug ID: 610
Summary: Example App like skeleton, l2fwd etc. in DPDK 20.11
need static compilation else will fail during runtime
Product: DPDK
Version: 20.11
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: examples
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---

Example App like skeleton, l2fwd etc. in DPDK 20.11 (not happened in 20.08) need static compilation else will fail during runtime with confusing message like below might led to wrong direction troubleshooting:

===============================================================================

oot@yockgen-VirtualBox://home/yockgen/dpdk/examples/l2fwd# ./build/l2fwd -- -p
0x3
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
MAC updating enabled
EAL: Error - exiting with code: 1
  Cause: No Ethernet ports - bye

================================================================================
Two options to remedy the problem:
1. make static
2. Added runtime parameter -d (e.g. -d librte_net_e1000.so)

Expected precise error handling message display, as the sample apps mostly the first entry point for inexperience new users, precise message will really help reduce the already high learning curve for DPDK.

Thanks!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.