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

From: Jason Wang
Date: Sun Jun 23 2024 - 22:45:53 EST


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(-)

--
2.31.1