Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310359; b=UC+ESSEkZCzEJqY05zzMh9K77VBHfo6g7pfLLeFGsp4M8rshnHqI5pRC35X/abu+4vdf nJACsGqmyWu6hH9k0QbCU/ar4pmo6tmKVmRey4+HrUttniY8Ogk6fOd5ee9ZqRIw5dteG 1iv3za5m43xRilZid9S57gVNBSg1UfVpDZyNuSVjA/GIZVBPXyedOwQcKr/ti1OjCmuMb pyAoy3ryxUhT+vbQLILHdjp8TShkBezUiu8N7k5attZaPZ5Mgr4dqr1/avjb0Aeaulx1/ Z3kSusejD6gv5XybLvNrL22zR9KB251OAalXf9azQfDRZEoaPYyffV5+iCtG1sX1L2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310359; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=BAN2hUa/DJYup/g+fify9drPuuldcQZJugg5WuJBYo4=; b=fmTpeLHS4q9sQlkDlh8UzBWWpQQzb1NR8cEFLr5sotYvhQOruT/0v8KQ94lSKZIs+e+k jwFvqOirL6UQtbGzLXkkPQFHS4/iFUMXSRSS4jXux8hFvR4AyRXW1UWK2fiygkUnd+9W2 WTBXlulsr5s5/66a8ycjvfbgVZTaljz9PZsJkHzp6+RCVcxdbGDJDf+TMk0RYPvl4MLJm Ip0Lv+KoANmP3kFwvfNcFsNsVsnoqPmOCFJErEHgslig4qtLXqSrwf988aGF3za5uScbJ HJ8C0ygfZ1eyTpsX+FVklU6J7W98jJOz+04AxLlSDXJaGmL0i/FAMEY0dl+HFwz+V3g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LXDROEMz; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 357A8606A33F for ; Thu, 3 Dec 2026 15:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LXDROEMz Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB0561F000C1; Thu, 3 Dec 2026 15:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310358; bh=BAN2hUa/DJYup/g+fify9drPuuldcQZJugg5WuJBYo4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LXDROEMzA33Mm2+sXMY8s3SNWY67ysxYn6wkLBjbeMyeKAAvleWx8QgRkvrFNOaZG aLsiS9QaWhQ853O+Vyy3HngiAM8D0a0MISOMUbaeQ4BdlQsNdijIUNYzGcz2n49WxH Hv4eC1JvkEZrC8Zur65viQ6MwLkCeHglDD+oEsjrdhJHBQyyjIpI7xUf4wO45Z0js6 iHVWgrMHZRbrTZ8wg1b13KiYoXl03SwR1Z2vxFyU6p4ef+3kGXViTaRtC/vEDMacDY QSlyutyybmhURYDVfNqYs39P4gWDf3W663Vt+6pY3qKl23nv5fTJcCtyEJ9Faj+q9s kx9aHanhKlX5A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v24 06/14] virtio_net: Query and set flow filter caps Reply-To: sashiko-reviews@lists.linux.dev To: "Shahar Shitrit" Cc: virtualization@lists.linux.dev, "Michael S. Tsirkin" , "Eugenio Perez" In-Reply-To: <20261202150502.3350030-7-shshitrit@nvidia.com> References: <20261202150502.3350030-1-shshitrit@nvidia.com> <20261202150502.3350030-7-shshitrit@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:05:58 +0000 X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] virtio_net: unbalanced disable_rx_mode_work() in virtnet_restore_up() -- commit b9f5c14eec9c7ae78f244671bac272d4a36c28f1 Author: Shahar Shitrit virtio_net: Query and set flow filter caps This commit adds UAPI definitions for VirtIO 1.4 flow filters and queries and sets flow filter capabilities during device probe and restore. > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 5eef2c3159638..03aea14da492e 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c [ ... ] > @@ -5838,6 +6050,20 @@ static int virtnet_restore_up(struct virtio_device= *vdev) > goto err_destroy_pools; > } > =20 > + /* > + * Initialize flow filters. Not supported is an acceptable and common > + * return code > + */ > + rtnl_lock(); > + err =3D virtnet_ff_init(&vi->ff, vi->vdev); > + if (err && err !=3D -EOPNOTSUPP) { > + rtnl_unlock(); > + virtnet_freeze_down(vi->vdev); > + remove_vq_common(vi); > + return err; > + } > + rtnl_unlock(); [Severity: Medium] Does calling virtnet_freeze_down() on this error path leave vi->rx_mode_work's disable depth unbalanced? virtnet_freeze_down() calls disable_rx_mode_work() (disable_work_sync(&vi->rx_mode_work)), which already ran during freeze, and enable_rx_mode_work() is not reached until the end of virtnet_restore_up(). If virtnet_ff_init() fails, calling virtnet_freeze_down() increments the work item's disable count a second time without a matching enable_work(). Initializing flow filters right after virtio_device_ready() (as in virtnet_probe()) and jumping to err_destroy_pools on error would avoid calling virtnet_freeze_down() here. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202150502.3350= 030-1-shshitrit@nvidia.com?part=3D6