From nobody Mon May 20 00:56:21 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=yandex-team.ru ARC-Seal: i=1; a=rsa-sha256; t=1563268151; cv=none; d=zoho.com; s=zohoarc; b=nGm4VuQGLXYy9yAiVEzYIZylZDcc/I2WQ7pFIhv5l9HMCIfxkCw17i+L80eKFoMud3x5InBenJzMZC65jot7LsReIZqp7HlRW3XcTBPbDn2D6XRWz69cgE5ap5mIsBKVBqVRYe63YU+TOKkohRRWj4CG800UN2qDv9PaZamKdxY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563268151; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Ro2hfgdp8RMRXa5uwW+Q1zpzh3An0HQLaeEBYjzRhTo=; b=BxMKLmIonK8ymOfoCZ85O+6IPFCglwApZdfFG5PRw9PMBgYP4udAWFp3e3aDXC8UhklPscHLYA86j4CCnRoNJmdcmW827UFHXUd6toUaN3y95LHF/t63TI6B0woKEk9PseqPRC4k72G2od30MCj2SYPEnd0sj680xIGfn3kneXo= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1563268151856752.7429225724342; Tue, 16 Jul 2019 02:09:11 -0700 (PDT) Received: from localhost ([::1]:46636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnJSL-0001b3-Rq for importer@patchew.org; Tue, 16 Jul 2019 05:09:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49826) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnJSA-0001Bt-HA for qemu-devel@nongnu.org; Tue, 16 Jul 2019 05:08:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnJS9-0000uk-2d for qemu-devel@nongnu.org; Tue, 16 Jul 2019 05:08:54 -0400 Received: from forwardcorp1p.mail.yandex.net ([77.88.29.217]:46202) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnJS8-0000qZ-FB; Tue, 16 Jul 2019 05:08:53 -0400 Received: from mxbackcorp1o.mail.yandex.net (mxbackcorp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::301]) by forwardcorp1p.mail.yandex.net (Yandex) with ESMTP id 1BEF32E1489; Tue, 16 Jul 2019 12:08:48 +0300 (MSK) Received: from smtpcorp1p.mail.yandex.net (smtpcorp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:10]) by mxbackcorp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4yJEaq2cgi-8liuXbex; Tue, 16 Jul 2019 12:08:48 +0300 Received: from dynamic-red.dhcp.yndx.net (dynamic-red.dhcp.yndx.net [2a02:6b8:0:408:250:b6ff:fe97:2682]) by smtpcorp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id c0IeHuEGSf-8lwCZ2iK; Tue, 16 Jul 2019 12:08:47 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1563268128; bh=IAPuz1mCtbeDJgEG2GHY7V+hQF0B0Lrc4TWrQukY4Q4=; h=Message-Id:Date:Subject:To:From:Cc; b=zFJCuL8nbTN95TAYyvKfpD9EKjztcHThDkqVvnCc4D1pOfJ5lpqxXAOFp07gROey6 i7yY63KS6rIQSutPlRv2fTtdkTQLp/VBYDVm09sYdeyKV1MymC205U7dGFlAlUvzXE FMJB3G+ahnS0k8B4j3pBqjQ7PE0uRqdn59FNlhqM= Authentication-Results: mxbackcorp1o.mail.yandex.net; dkim=pass header.i=@yandex-team.ru From: Anton Kuchin To: qemu-devel@nongnu.org Date: Tue, 16 Jul 2019 12:08:39 +0300 Message-Id: <20190716090839.19708-1-antonkuchin@yandex-team.ru> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 77.88.29.217 Subject: [Qemu-devel] [PATCH] virtio-net: remove redundant qdev from VirtIONet X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Jason Wang , Anton Kuchin , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Anton Kuchin Reviewed-by: Michael S. Tsirkin --- hw/net/virtio-net.c | 3 +-- include/hw/virtio/virtio-net.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index b9e1cd71cf..16d2ad5927 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -387,7 +387,7 @@ static void rxfilter_notify(NetClientState *nc) VirtIONet *n =3D qemu_get_nic_opaque(nc); =20 if (nc->rxfilter_notify_enabled) { - gchar *path =3D object_get_canonical_path(OBJECT(n->qdev)); + gchar *path =3D object_get_canonical_path(OBJECT(n)); qapi_event_send_nic_rx_filter_changed(!!n->netclient_name, n->netclient_name, path); g_free(path); @@ -2759,7 +2759,6 @@ static void virtio_net_device_realize(DeviceState *de= v, Error **errp) nc->rxfilter_notify_enabled =3D 1; =20 QTAILQ_INIT(&n->rsc_chains); - n->qdev =3D dev; } =20 static void virtio_net_device_unrealize(DeviceState *dev, Error **errp) diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index b96f0c643f..4a1b599d48 100644 --- a/include/hw/virtio/virtio-net.h +++ b/include/hw/virtio/virtio-net.h @@ -174,7 +174,6 @@ struct VirtIONet { uint32_t *vlans; virtio_net_conf net_conf; NICConf nic_conf; - DeviceState *qdev; int multiqueue; uint16_t max_queues; uint16_t curr_queues; --=20 2.20.1