From: Eli Cohen Date: Mon, 13 Jun 2022 07:59:57 +0000 (+0300) Subject: vdpa/mlx5: Update Control VQ callback information X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=40f2f3e94178d45e4ee6078effba2dfc76f6f5ba;p=linux.git vdpa/mlx5: Update Control VQ callback information The control VQ specific information is stored in the dedicated struct mlx5_control_vq. When the callback is updated through mlx5_vdpa_set_vq_cb(), make sure to update the control VQ struct. Fixes: 5262912ef3cf ("vdpa/mlx5: Add support for control VQ and MAC setting") Signed-off-by: Eli Cohen Message-Id: <20220613075958.511064-1-elic@nvidia.com> Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang event_cbs[idx] = *cb; + if (is_ctrl_vq_idx(mvdev, idx)) + mvdev->cvq.event_cb = *cb; } static void mlx5_cvq_notify(struct vringh *vring)