From: Jason Wang <jasowang@redhat.com>
To: mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com,
eperezma@redhat.com
Cc: virtualization@lists.linux.dev, linux-kernel@vger.kernel.org,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, netdev@vger.kernel.org
Subject: [PATCH net-next v3 0/3] virtio-net: synchronize op/admin state
Date: Tue, 9 Jul 2024 16:02:11 +0800 [thread overview]
Message-ID: <20240709080214.9790-1-jasowang@redhat.com> (raw)
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
next reply other threads:[~2024-07-09 8:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-09 8:02 Jason Wang [this message]
2024-07-09 8:02 ` [PATCH net-next v3 1/3] virtio: rename virtio_config_enabled to virtio_config_core_enabled Jason Wang
2024-07-09 8:13 ` Xuan Zhuo
2024-07-09 8:02 ` [PATCH net-next v3 2/3] virtio: allow driver to disable the configure change notification Jason Wang
2024-07-09 8:13 ` Xuan Zhuo
2024-07-09 8:14 ` Xuan Zhuo
2024-07-09 8:02 ` [PATCH net-next v3 3/3] virtio-net: synchronize operstate with admin state on up/down Jason Wang
2024-07-09 8:14 ` Xuan Zhuo
2024-07-09 8:14 ` Xuan Zhuo
2024-07-09 13:27 ` Michael S. Tsirkin
2024-07-10 3:03 ` Jason Wang
2024-07-17 1:19 ` Jason Wang
2024-07-17 6:00 ` Michael S. Tsirkin
2024-07-17 6:53 ` Jason Wang
2024-07-19 1:02 ` Jason Wang
2024-07-19 1:19 ` Michael S. Tsirkin
2024-07-22 7:24 ` Jason Wang
2024-07-26 7:24 ` Michael S. Tsirkin
2024-07-29 1:59 ` Jason Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240709080214.9790-1-jasowang@redhat.com \
--to=jasowang@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).