[PATCH net-next v3 0/3] virtio-net: synchronize op/admin state

From: Jason Wang
Date: Tue Jul 09 2024 - 04:02:55 EST


Hi All:

This series tries to synchronize the operstate with the admin state
which allows the lower virtio-net to propagate the link status to the
upper devices like macvlan.

This is done by toggling carrier during ndo_open/stop.

Changes since V2:

- introduce config_driver_disabled and helpers
- schedule config change work unconditionally

Jason Wang (3):
virtio: rename virtio_config_enabled to virtio_config_core_enabled
virtio: allow driver to disable the configure change notification
virtio-net: synchronize operstate with admin state on up/down

drivers/net/virtio_net.c | 64 ++++++++++++++++++++++++----------------
drivers/virtio/virtio.c | 59 ++++++++++++++++++++++++++++--------
include/linux/virtio.h | 11 +++++--
3 files changed, 93 insertions(+), 41 deletions(-)

--
2.31.1