iproute2/dcb
Ido Schimmel d0e02f35af dcb: Do not leave ACKs in socket receive buffer
Originally, the dcb utility only stopped receiving messages from a
socket when it found the attribute it was looking for. Cited commit
changed that, so that the utility will also stop when seeing an ACK
(NLMSG_ERROR message), by setting the NLM_F_ACK flag on requests.

This is problematic because it means a successful request will leave an
ACK in the socket receive buffer, causing the next request to bail
before reading its response.

Fix that by not stopping when finding the required attribute in a
response. Instead, stop on the subsequent ACK.

Fixes: 84c0369726 ("dcb: unblock mnl_socket_recvfrom if not message received")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2022-12-29 08:44:23 -08:00
..
.gitignore Add dcb/.gitignore 2020-11-29 20:39:47 +00:00
dcb_app.c dcb: add new pcp-prio parameter to dcb app 2022-12-08 09:22:26 -07:00
dcb_apptrust.c dcb: add new subcommand for apptrust 2022-12-08 09:22:47 -07:00
dcb_buffer.c dcb: Add a subtool for the DCB buffer object 2020-12-14 16:42:03 +00:00
dcb_dcbx.c dcb: Add a subtool for the DCBX object 2021-01-18 04:09:29 +00:00
dcb_ets.c dcb: ets: Change the way show parameters are given in synopsis 2020-12-14 16:41:22 +00:00
dcb_maxrate.c dcb: Add a subtool for the DCB maxrate object 2020-12-14 16:42:07 +00:00
dcb_pfc.c dcb: Add a subtool for the DCB PFC object 2020-12-14 16:41:58 +00:00
dcb.c dcb: Do not leave ACKs in socket receive buffer 2022-12-29 08:44:23 -08:00
dcb.h dcb: add new subcommand for apptrust 2022-12-08 09:22:47 -07:00
Makefile dcb: add new subcommand for apptrust 2022-12-08 09:22:47 -07:00