Skip to content

Commit 10f8830

Browse files
elic307igregkh
authored andcommitted
vdpa/mlx5: Update Control VQ callback information
commit 40f2f3e upstream. 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: 5262912 ("vdpa/mlx5: Add support for control VQ and MAC setting") Signed-off-by: Eli Cohen <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]) Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 01121e3 commit 10f8830

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/vdpa/mlx5/net/mlx5_vnet.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,8 @@ static void mlx5_vdpa_set_vq_cb(struct vdpa_device *vdev, u16 idx, struct vdpa_c
16981698
struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev);
16991699

17001700
ndev->event_cbs[idx] = *cb;
1701+
if (is_ctrl_vq_idx(mvdev, idx))
1702+
mvdev->cvq.event_cb = *cb;
17011703
}
17021704

17031705
static void mlx5_cvq_notify(struct vringh *vring)

0 commit comments

Comments
 (0)