client: send confirmation messages for ring add/remove
authorFelix Fietkau <nbd@nbd.name>
Thu, 30 Nov 2023 11:19:29 +0000 (12:19 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 30 Nov 2023 11:19:29 +0000 (12:19 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
client.c

index 93f31954f321f28eee09b8ee941991b6fe807d8e..e75883280ea6101f5a836e89b25f708f93c403ab 100644 (file)
--- a/client.c
+++ b/client.c
@@ -170,6 +170,7 @@ static void client_parse_message(struct client *cl)
        switch (msg->type) {
        case CL_MSG_RING_ADD:
                client_ring_alloc(cl);
+               client_send_msg(cl, msg, -1);
                break;
        case CL_MSG_RING_REMOVE:
                DC(2, cl, "delete ring %x", msg->id);
@@ -178,6 +179,7 @@ static void client_parse_message(struct client *cl)
                        client_ring_free(r);
                else
                        DC(2, cl, "ring not found");
+               client_send_msg(cl, msg, -1);
                break;
        case CL_MSG_RING_NOTIFY:
                DC(3, cl, "notify on ring %d", msg->id);