]> 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)
commit3bdc44fadb1625a3f880db36250214d41dac9bcf
treebd80f60e756b836aa9d511790a66f7453ffff974
parent6ab462dec5e7cdb1976f47fe0eb45bfc7d441f24
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