[dpdk-stable] [PATCH v1 71/72] net/mlx5: fix Windows warnings on get_if_name
Thomas Monjalon
thomas at monjalon.net
Wed Oct 28 08:34:28 CET 2020
28/10/2020 00:23, Ophir Munk:
> From: Tal Shnaiderman <talshn at nvidia.com>
>
> Windows warns on missing function prototype get_if_name. To fix it -
> move the prototype to shared file mlx5.h and add missing definition
> IF_NAMESIZE to Windows mlx5_os.h file.
>
> Fixes: e9c0b96e3526 ("net/mlx5: move Linux ifname function")
> Cc: stable at dpdk.org
>
> Signed-off-by: Tal Shnaiderman <talshn at nvidia.com>
> ---
[...]
> --- a/drivers/net/mlx5/windows/mlx5_os.h
> +++ b/drivers/net/mlx5/windows/mlx5_os.h
> @@ -21,4 +21,7 @@ enum {
> #ifndef ETOOMANYREFS
> #define ETOOMANYREFS 109 /* Too many references: cannot splice */
> #endif
> +#ifndef IF_NAMESIZE
> +#define IF_NAMESIZE 128
> +#endif
Should be in EAL.
More information about the stable
mailing list