Bug 610
Summary: | Example App like skeleton, l2fwd etc. in DPDK 20.11 need static compilation else will fail during runtime | ||
---|---|---|---|
Product: | DPDK | Reporter: | yockgen (yockgen) |
Component: | examples | Assignee: | dev |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | ajit.khaparde, bruce.richardson, david.marchand, thomas |
Priority: | Normal | ||
Version: | 20.11 | ||
Target Milestone: | --- | ||
Hardware: | x86 | ||
OS: | Linux | ||
Attachments: | Troubleshooting steps |
Description
yockgen
2021-01-09 05:33:09 CET
Can you provide additional details on how you are compiling and running these example apps? (In reply to yockgen from comment #0) > 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. I agree the error message is not really helpful. We should propose the -d option if no device is found.
> I agree the error message is not really helpful.
> We should propose the -d option if no device is found.
Error message based on driver list rather than device lists? It could really be that there are no devices, but no drivers is almost certainly an issue.
(In reply to Bruce Richardson from comment #3) > > I agree the error message is not really helpful. > > We should propose the -d option if no device is found. > > Error message based on driver list rather than device lists? It could really > be that there are no devices, but no drivers is almost certainly an issue. Yes we can detect that there is no driver. We can also suggest to add a -d option if no device is found, in case the right driver is not loaded. Created attachment 141 [details]
Troubleshooting steps
Appreciated if the simplest example running command like this will be also somewhere in the error message or DPDK documentation: "./examples/skeleton/build/basicfwd -d librte_net_e1000.so -d librte_mempool_ring.so" This will be very helpful for new comer to do the further troubleshooting via Internet, even not all of them are using e1000, but it will hinted them to a correct direction, high level error description not really help much for further self troubleshooting. And, will not help in nurturing new users. Thanks! Thomas, Is this in your todo list? Or do you know if anyone else looking at it? |