]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit996821bb1fd6122256ef940ea0a9ab283c0c2999
treebd80f60e756b836aa9d511790a66f7453ffff974
parent800898a2807c344c333bb105e584bbbcba90559d
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