From nobody Wed Nov 5 16:43:36 2025 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1535640620860588.4800807972226; Thu, 30 Aug 2018 07:50:20 -0700 (PDT) Received: from localhost ([::1]:49342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvOH5-0004YY-Ec for importer@patchew.org; Thu, 30 Aug 2018 10:50:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvOAP-0005A2-CK for qemu-devel@nongnu.org; Thu, 30 Aug 2018 10:43:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvNur-0003dW-5k for qemu-devel@nongnu.org; Thu, 30 Aug 2018 10:27:22 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:44185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvNup-0003bx-NA for qemu-devel@nongnu.org; Thu, 30 Aug 2018 10:27:20 -0400 Received: by mail-wr1-x444.google.com with SMTP id v16-v6so8258255wro.11 for ; Thu, 30 Aug 2018 07:27:19 -0700 (PDT) Received: from bark.daynix ([141.226.163.173]) by smtp.gmail.com with ESMTPSA id t4-v6sm10483893wrb.45.2018.08.30.07.27.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 07:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=U32KNXA94kDS+kMdMqbPLujrcMwdOLOQev8OHug8Vnc=; b=fOBp4AuI9G5JmhAqh9cZGs+jW2Fb6EQWIQC1KZJzbHq4uJ69fKiOs1e4bhkFHlq/nQ u+PMqBUoWbj6OToW+0qOOrW8HpNB1StetYjvJhCpFlToTD/8dgBeUJe+tbWWn8d+U7aA x6xsVYJ+v+GLzoFruNctzElPAKhx/PtXGytcwMFS8ERQi32eCtbBjxwJg/gjolrFE0hI aZvvxEGSmXE2CV7Y6iIrUcSszOlFJs9bH0KD2shS6R5TfzOEq2zvw75kuxySLl61/GE5 eD2kVN0QOe7Dyla/z25/Uvyhd2Akq0CfZVnCUEmbPE4+HTapH/DuUb144Hopnf7lb8Xo bbaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=U32KNXA94kDS+kMdMqbPLujrcMwdOLOQev8OHug8Vnc=; b=qR35DHyN5CIj42xgDm7omi+dQfkn8mjpiXza6HudtifUe1zud+9IlP9MhaQzB11XQD Ppl8PHC3ikY+4HJfV5za18sCjs1+LO510zSChOY0Hjb3A1SDeGvMyOrWAfn3OLZkbQPL uAypXU4MSkwMOLBMbVIiAIl2J+stv3KCgbO4tCUmQnEXyKlinJKLmT+SmuWhgp07kEkb 8YBq0r6i5jqYXmHv+DQt9z20WT58BPrQqd6Px9vw6e3uway2oTg830wvPmY4iaUPt0kv MBk5/x1vWmJB8gjnGb9peiyIftnkL1Dtb7TihsUGV5Lt5J8l0aW8YhWk5DvU1SIYU9si T3SQ== X-Gm-Message-State: APzg51DbRvo2jix2++LzLgxgimeS6J/ZHo4XRDVlcnFf+ea7LsfNKcA5 ceXhpcHAirTXCr5huGK05x1i/B0WFWc= X-Google-Smtp-Source: ANB0Vda+eHhH5WIiiW29kHHTFGyiN0RbxJ4xMRPl9b/pTAAQn7r/5lRdR6aJLSryR4ERfyqZXztPAQ== X-Received: by 2002:adf:f7c4:: with SMTP id a4-v6mr8127741wrq.86.1535639237969; Thu, 30 Aug 2018 07:27:17 -0700 (PDT) From: Sameeh Jubran To: qemu-devel@nongnu.org, Jason Wang Date: Thu, 30 Aug 2018 17:27:05 +0300 Message-Id: <20180830142708.14311-4-sameeh@daynix.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180830142708.14311-1-sameeh@daynix.com> References: <20180830142708.14311-1-sameeh@daynix.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::444 Subject: [Qemu-devel] [RFC 3/6] vhost-net: Expose vhost_net_get_fd X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yan Vugenfirer Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/net/vhost_net.c | 2 +- include/hw/virtio/virtio-net.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index e037db63a3..c0bff725c9 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -129,7 +129,7 @@ uint64_t vhost_net_get_acked_features(VHostNetState *ne= t) return net->dev.acked_features; } =20 -static int vhost_net_get_fd(NetClientState *backend) +int vhost_net_get_fd(NetClientState *backend) { switch (backend->info->type) { case NET_CLIENT_DRIVER_TAP: diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index 02484dc94c..a7b53edc96 100644 --- a/include/hw/virtio/virtio-net.h +++ b/include/hw/virtio/virtio-net.h @@ -107,4 +107,6 @@ typedef struct VirtIONet { void virtio_net_set_netclient_name(VirtIONet *n, const char *name, const char *type); =20 +int vhost_net_get_fd(NetClientState *backend); + #endif --=20 2.13.6