vdpa/mlx5: Propagate link status from device to vdpa driver
authorEli Cohen <elic@nvidia.com>
Thu, 9 Sep 2021 12:36:35 +0000 (15:36 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:26:47 +0000 (05:26 -0400)
commitedf747affc41a18ccc3a616813d4c2b6d38b46ce
treebd80f60e756b836aa9d511790a66f7453ffff974
parent218bdd20e56cab41a68481bc10c551ae3e0a24fb
vdpa/mlx5: Propagate link status from device to vdpa driver

Add code to register to hardware asynchronous events. Use this
mechanism to track link status events coming from the device and update
the config struct.

After doing link status change, call the vdpa callback to notify of the
link status change.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20210909123635.30884-4-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c