Hello Kevin,
On Wed, Jun 12, 2024 at 7:09 PM Kevin Traynor <[email protected]> wrote:
>
> Currently dpdk lcore args for DPDK EAL init can be generated or it
> 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, 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!
Not important for this patch, but there is a typo in the DPDK error
message, should be --lcores.
Can you send a fix on DPDK side?
>
> Add check for '--lcores' in dpdk-extra config and don't add '-l' if
> it is detected:
>
> |00009|dpdk|INFO|EAL ARGS: ovs-vswitchd --lcores 0@8 --in-memory.
>
> Fixes: 0a0f39df1d5a ("netdev-dpdk: Add support for DPDK 16.07")
I am not clear why you point at this commit.
--lcores were introduced in DPDK v2.0.0.
In 0a0f39df1d5a (which swaps DPDK from 16.04 to 16.07), only -c is
handled so passing additional -l and --lcores via dpdk-extra would
already be a problem.
I would point at:
Fixes: 543342a41cbc ("DPDK: add support for v2.0.0")
> Signed-off-by: Kevin Traynor <[email protected]>
With the Fixes: tag sorted out, you can add:
Reviewed-by: David Marchand <[email protected]>
--
David Marchand
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev