mbox series

[V2,0/3] virtio-net: synchronize operstate with admin state on up/down

Message ID 20240624024523.34272-1-jasowang@redhat.com (mailing list archive)
Headers show
Series virtio-net: synchronize operstate with admin state on up/down | expand

Message

Jason Wang June 24, 2024, 2:45 a.m. UTC
Hi All:

Currently, we don't synchronize the opersteate with the admin state
currently when prevent the link status to be propagated to the stacked
device on top of the virtio-net.

This patch fixes this issue.

Changes since V1:
- Try to reuse the virtio core facility to enable and disable the
  configure interrupt

Jason Wang (3):
  virtio: allow nested disabling of the configure interrupt
  virtio: export virtio_config_{enable|disable}()
  virtio-net: synchronize operstate with admin state on up/down

 drivers/net/virtio_net.c | 72 +++++++++++++++++++++++-----------------
 drivers/virtio/virtio.c  | 26 ++++++++++-----
 include/linux/virtio.h   |  5 ++-
 3 files changed, 63 insertions(+), 40 deletions(-)