mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
dpdk: Check other_config:dpdk-extra for '--lcores'.
Currently dpdk lcore args for DPDK EAL init can be generated or
they can be written directly by the user through dpdk-extra.
If dpdk-extra does not contain '-l' or '-c', a '-l' argument with
a core list for DPDK EAL init will be generated.
The '--lcores' argument should also be checked, as if it is used in
dpdk-extra, currently a '-l' is still generated and that causes
DPDK EAL init to fail:
|00009|dpdk|INFO|EAL ARGS: ovs-vswitchd --lcores 0@18 --in-memory -l 0.
|00012|dpdk|ERR|EAL: Option -l is ignored, because (--lcore) is set!
Add check for '--lcores' in dpdk-extra config and don't generate '-l'
if it is detected:
|00009|dpdk|INFO|EAL ARGS: ovs-vswitchd --lcores 0@8 --in-memory.
Fixes: 543342a41c
("DPDK: add support for v2.0.0")
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
@@ -337,7 +337,9 @@ dpdk_init__(const struct smap *ovs_other_config)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (args_contains(&args, "-c") || args_contains(&args, "-l")) {
|
||||
if (args_contains(&args, "-c") ||
|
||||
args_contains(&args, "-l") ||
|
||||
args_contains(&args, "--lcores")) {
|
||||
auto_determine = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user