iproute2/devlink
Moshe Shemesh c934da8aaa devlink: mnlg: Catch returned error value of dumpit commands
Devlink commands which implements the dumpit callback may return error.
The netlink function netlink_dump() sends the errno value as the payload
of the message, while answering user space with NLMSG_DONE.
To enable receiving errno value for dumpit commands we have to check for
it in the message. If it is a negative value then the dump returned an
error so we should set errno accordingly and check for ext_ack in case
it was set.

Fixes: 049c58539f ("devlink: mnlg: Add support for extended ack")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2019-06-12 08:43:14 -07:00
..
.gitignore devlink: ignore build result 2016-04-11 13:35:12 -07:00
Makefile iproute2: Installation errors without libmnl 2018-12-04 14:27:08 -08:00
devlink.c devlink: Increase bus, device buffer size to 64 bytes 2019-06-06 14:41:17 -07:00
mnlg.c devlink: mnlg: Catch returned error value of dumpit commands 2019-06-12 08:43:14 -07:00
mnlg.h add devlink tool 2016-03-27 10:57:15 -07:00