[dpdk-dev] [PATCH v2 6/7] drivers: remove POSIX dependencies
Tal Shnaiderman
talshn at nvidia.com
Sun Feb 21 09:59:38 CET 2021
> Subject: [dpdk-dev] [PATCH v2 6/7] drivers: remove POSIX dependencies
>
> External email: Use caution opening links or attachments
>
>
> Replace POSIX strncasecmp() with EAL rte_strncasecmp().
> Replace POSIX strtok_r() with EAL rte_strtok().
> Replace POSIX strdup() with EAL rte_strdup().
>
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
> ---
> i40e: checkpatches.sh complains about long lines (it's ~85).
> I doubt that mechanical fix would keep the code readable.
> It's on 5th level of indentation, so I'd extract a function,
> but would like to hear from maintainers first.
>
> drivers/bus/pci/private.h | 2 +-
> drivers/bus/vdev/vdev.c | 4 +-
> drivers/bus/vdev/vdev_params.c | 3 +-
> drivers/common/mlx5/mlx5_common_pci.c | 4 +-
bus_cmdline_options_handler in mlx5_common_pci.c has a call to strdup which needs to be renamed to rte_strdup
(Also failed CI: https://lab.dpdk.org/results/dashboard/patchsets/15674/ )
More information about the dev
mailing list