Re: [dpdk-dev] [PATCH] net/mlx5: do not close stdin on error

2021-10-19 Thread Dmitry Kozlyuk
> -Original Message- > From: David Marchand > Sent: 14 октября 2021 г. 14:37 > To: dev@dpdk.org > Cc: Dmitry Kozlyuk ; sta...@dpdk.org; Matan Azrad > ; Slava Ovsiienko ; > Xueming(Steven) Li ; Jack Min > Subject: [PATCH] net/mlx5: do not close stdin on error > > External email: Use cauti

[dpdk-dev] [PATCH] net/mlx5: do not close stdin on error

2021-10-14 Thread David Marchand
If for any reason, a socket could not be opened, mlx5_pmd_socket_init() could close the 0 fd (which is valid, and has a fair chance to be stdin), since server_socket == 0 from the variable being in .bss. Fixes: e6cdc54cc0ef ("net/mlx5: add socket server for external tools") Cc: sta...@dpdk.org Si