DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK 20.11 Static vs Dynamic Linking- l2fwd issue
@ 2021-01-19 10:06 Truring Team
  2021-01-19 10:40 ` Bruce Richardson
  0 siblings, 1 reply; 6+ messages in thread
From: Truring Team @ 2021-01-19 10:06 UTC (permalink / raw)
  To: dev

Hi Team,

I am facing one issue with dpdk 20.11 Release, compiled the l2fwd app with
make static , its throwing following error while running the app:

Problematic Use Case:
cd dpdk-20.11/examples/l2fwd
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
*make static *
./build/l2fwd -l 0-3 -n 4 -- -q 1 -p 1
EAL: Detected 6 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: No legacy callbacks, legacy socket not created
MAC updating enabled

*EAL: Error - exiting with code: 1  Cause: No Ethernet ports - bye*

Working use Case:
But when I am compiling l2fwd with *make* , then it's *working fine*.
cd dpdk-20.11/examples/l2fwd
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
*make*
export LD_LIBRARY_PATH=/home/upfuser/dpdk-20.11/build//lib:$LD_LIBRARY_PATH
./build/l2fwd -l 0-3 -n 4 -- -q 1 -p 1
MAC updating enabled
Notice: odd number of ports in portmask.
Lcore 0: RX port 0 TX port 0
Initializing port 0... done:
Port 0, MAC address: DE:AD:CE:EF:85:81
Checking link status.....done
Port 0 Link up at 1 Gbps FDX Autoneg
L2FWD: lcore 1 has nothing to do
L2FWD: lcore 2 has nothing to do
L2FWD: lcore 3 has nothing to do
L2FWD: entering main loop on lcore 0
L2FWD:  -- lcoreid=0 portid=0

Can someone help me to figure out the root cause why this happening.

Thanks

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-19 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 10:06 [dpdk-dev] DPDK 20.11 Static vs Dynamic Linking- l2fwd issue Truring Team
2021-01-19 10:40 ` Bruce Richardson
2021-01-19 10:42   ` Bruce Richardson
2021-01-19 11:21     ` Truring Team
2021-01-19 11:24       ` Truring Team
2021-01-19 12:44         ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).