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