[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210526172808.485ff268@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Wed, 26 May 2021 17:28:08 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: wangyunjian <wangyunjian@...wei.com>
Cc: <netdev@...r.kernel.org>, <davem@...emloft.net>, <mst@...hat.com>,
<jasowang@...hat.com>, <virtualization@...ts.linux-foundation.org>,
<dingxiaoxiong@...wei.com>
Subject: Re: [PATCH net-next] virtio_net: set link state down when virtqueue
is broken
On Wed, 26 May 2021 19:39:51 +0800 wangyunjian wrote:
> + for (i = 0; i < vi->max_queue_pairs; i++) {
> + if (virtqueue_is_broken(vi->rq[i].vq) || virtqueue_is_broken(vi->sq[i].vq)) {
> + netif_carrier_off(netdev);
> + netif_tx_stop_all_queues(netdev);
> + vi->broken = true;
Can't comment on the virtio specifics but the lack of locking between
this and the code in virtnet_config_changed_work() seems surprising.
Powered by blists - more mailing lists