Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Ophir Munk
Oct. 27, 2020, 11:23 p.m. UTC
Errno ETOOMANYREFS may not be supported under Windows. In such cases
add its definition.
Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
---
drivers/net/mlx5/windows/mlx5_os.h | 3 +++
1 file changed, 3 insertions(+)
Comments
28/10/2020 00:23, Ophir Munk: > Errno ETOOMANYREFS may not be supported under Windows. In such cases > add its definition. Please add it for everybody in EAL. In which case it is not defined in Windows?
> Subject: Re: [PATCH v1 40/72] net/mlx5/windows: define errno > ETOOMANYREFS > > External email: Use caution opening links or attachments > > > 28/10/2020 00:23, Ophir Munk: > > Errno ETOOMANYREFS may not be supported under Windows. In such > cases > > add its definition. > > Please add it for everybody in EAL. > Hi Dmitry, Are you aware of the errno existence in Windows? If not, any suggestion on an EAL place to add it? Create an errno.h file? > In which case it is not defined in Windows? > >
diff --git a/drivers/net/mlx5/windows/mlx5_os.h b/drivers/net/mlx5/windows/mlx5_os.h index dd3515c..563cfa4 100644 --- a/drivers/net/mlx5/windows/mlx5_os.h +++ b/drivers/net/mlx5/windows/mlx5_os.h @@ -18,4 +18,7 @@ enum { #define PTHREAD_MUTEX_INITIALIZER {(void *)-1, -1, 0, 0, 0, 0} #define rte_intr_free_epoll_fd +#ifndef ETOOMANYREFS +#define ETOOMANYREFS 109 /* Too many references: cannot splice */ +#endif #endif /* RTE_PMD_MLX5_OS_H_ */