Message ID | 20181222095036.29743-17-marcel.apfelbaum@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::12; helo=lists.nongnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Fy5iVsPK"; dkim-atps=neutral Received: from lists.nongnu.org (lists.nongnu.org [IPv6:2001:4830:134:3::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43MLhM2nzmz9sPd for <incoming@patchwork.ozlabs.org>; Sat, 22 Dec 2018 21:04:51 +1100 (AEDT) Received: from localhost ([::1]:53887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1gae9I-0008EZ-UD for incoming@patchwork.ozlabs.org; Sat, 22 Dec 2018 05:04:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <marcel.apfelbaum@gmail.com>) id 1gadw3-0006Ls-Qp for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <marcel.apfelbaum@gmail.com>) id 1gadw0-0006UA-94 for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:51:07 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:50583) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <marcel.apfelbaum@gmail.com>) id 1gadw0-0006TI-3H for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:51:04 -0500 Received: by mail-wm1-x341.google.com with SMTP id n190so7399864wmd.0 for <qemu-devel@nongnu.org>; Sat, 22 Dec 2018 01:51:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1jH+qlmzkoR61VpTtmJ6wpMY2OAsBVpMtrW4d73nlow=; b=Fy5iVsPKTZKvoWyy/ZBy2gckILVJkelB8FgrHhaFSYanepYWBrPOcQChDZlPHmWiYo Z36JZhqBN7N4PYcWEO/XVZ00jz7utj8ItOBPwwslDz9zI8Gt7XEY15B9VAQw8lIfE1lC UU6V0yRWRK0E5WYPn6tGUhaacfiXdyXOGvKL8maUTAkzAuQLFDjs/JrJM9z+O2u5yf40 6xGSgqFv/qxhogPn5x3kXg0lr/SAAqEmYE7xDiao37MYUuhRtY4zc8SdvxSFfdWUDMa4 WvWP5wMlSnfbRvDsmy8YsN4FzJUw0Tb5pbv9jwL1maMd8XhagnPbkOaWu/m4yf1y2tcD 9lpA== 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=1jH+qlmzkoR61VpTtmJ6wpMY2OAsBVpMtrW4d73nlow=; b=azBlQgNMm1ek/PDX6rStJ9vJMa6EFkQFEJHo02QPyr1w81F29mCZdfRnOL1UBK2o2x bfn1JwXU+7KRHf2zALfJUzmhX32HVxIyFglmLl7uG1C4BzkdIKfj/A+5K6oAfSaR5yDV OzH3CPvJR/jEV/u9VYrgs4ViFyROqoFHR5C/D1yKTrQzIr8Ylscn6HD/rsC4lehEnxLT 7aX7qtd2OPp2Je9RriMztZ5DOED0L8yZ7wHUgWD43EptGrEv5wz2eZAmQhoeT59rQT3i 0OU1IHzimstZWMO8JYUcpSsi41KAUDLax0ktdHWdhpsom4Exbbg49PvTMnikRbck20bK 62OQ== X-Gm-Message-State: AJcUukc45uBQItfzXEBcajIRtaz7hjMEjx7MvPZ3lNxhXwrYOjPTCMLk 7MS40weILdud4JCoEy8jkV9Dn205 X-Google-Smtp-Source: ALg8bN53BWifALXEB9aI7TAdIKZT5d1xPPLw7ZuM7cB1nUktcnTO4NTmtyox/nYDz1TC+oWnk5M6Mw== X-Received: by 2002:a1c:8cd0:: with SMTP id o199mr5696490wmd.56.1545472262953; Sat, 22 Dec 2018 01:51:02 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id s3sm9557371wmj.23.2018.12.22.01.51.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Dec 2018 01:51:02 -0800 (PST) From: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Sat, 22 Dec 2018 11:50:21 +0200 Message-Id: <20181222095036.29743-17-marcel.apfelbaum@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> References: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH PULL 16/31] hw/pvrdma: Make device state depend on Ethernet function state X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: yuval.shaia@oracle.com, pjp@fedoraproject.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/31] hw/pvrdma: Check the correct return value
|
expand
|
diff --git a/hw/rdma/vmw/pvrdma_cmd.c b/hw/rdma/vmw/pvrdma_cmd.c index 2979582fac..0d3c818c20 100644 --- a/hw/rdma/vmw/pvrdma_cmd.c +++ b/hw/rdma/vmw/pvrdma_cmd.c @@ -139,7 +139,8 @@ static int query_port(PVRDMADev *dev, union pvrdma_cmd_req *req, resp->hdr.ack = PVRDMA_CMD_QUERY_PORT_RESP; resp->hdr.err = 0; - resp->attrs.state = attrs.state; + resp->attrs.state = dev->func0->device_active ? attrs.state : + PVRDMA_PORT_DOWN; resp->attrs.max_mtu = attrs.max_mtu; resp->attrs.active_mtu = attrs.active_mtu; resp->attrs.phys_state = attrs.phys_state;