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

Jason Wang
2024-06-24T02:45:42Z

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