[PATCH v1 19/21] net/virtio-user: forward control messages to shadow queue

Stephen Hemminger stephen at networkplumber.org
Wed Nov 30 17:54:21 CET 2022


On Wed, 30 Nov 2022 16:56:37 +0100
Maxime Coquelin <maxime.coquelin at redhat.com> wrote:

> +	if (status != 0 || !dev->scvq)
> +		goto out;
> +
> +	status = virtio_send_command(&dev->scvq->cq, (struct virtio_pmd_ctrl *)hdr, dlen, nb_dlen);
> +out:

Maybe I am looking at the diff only, and not seeing something but.

This looks like just an if statement, why the goto here?


More information about the dev mailing list