ncsi: fix ncsi-netlink hang

Some commands, such as `ncsi-netlink -s -x 4 -p 0 -c 0`, may hang.

In the kernel, if a registered command (like `ncsi_set_interface_nl`)
has no `dumpit` callback and if auto ack is disabled, there will be no
message returned at all, causing `recvmsg` to block indefinitely.

I believe only commands such as `NCSI_CMD_SEND_CMD`, whose responses
are returned asynchronously, actually need auto ack to be disabled.

Tested: ncsi-netlink and ncsi-cmd all works.
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
Change-Id: I44762e04490c229e936a73d95794c03821276f3a
1 file changed
tree: d6f41c3521bedd88abdad766349e4faf57b45724
  1. docs/
  2. gen/
  3. src/
  4. subprojects/
  5. test/
  6. yaml/
  7. .clang-format
  8. .clang-tidy
  9. .gitignore
  10. .shellcheck
  11. 60-phosphor-networkd-default.network.in
  12. LICENSE
  13. meson.build
  14. meson.options
  15. OWNERS
  16. README.md
  17. xyz.openbmc_project.Network.conf.in
  18. xyz.openbmc_project.Network.service.in
README.md

phosphor-networkd

To Build

To build this package, do the following steps:

1. meson build
2. ninja -C build