[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v9 15/23] hw/pvrdma: Make device state depend on Eth
From: |
Yuval Shaia |
Subject: |
[Qemu-devel] [PATCH v9 15/23] hw/pvrdma: Make device state depend on Ethernet function state |
Date: |
Fri, 21 Dec 2018 16:40:29 +0200 |
User should be able to control the device by changing Ethernet function
state so if user runs 'ifconfig ens3 down' the PVRDMA function should be
down as well.
Signed-off-by: Yuval Shaia <address@hidden>
Reviewed-by: Marcel Apfelbaum <address@hidden>
---
hw/rdma/vmw/pvrdma_cmd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
--
2.17.2
- [Qemu-devel] [PATCH v9 04/23] hw/rdma: Abort send-op if fail to create addr handler, (continued)
- [Qemu-devel] [PATCH v9 04/23] hw/rdma: Abort send-op if fail to create addr handler, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 08/23] hw/pvrdma: Set the correct opcode for recv completion, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 07/23] hw/pvrdma: Make default pkey 0xFFFF, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 09/23] hw/pvrdma: Set the correct opcode for send completion, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 05/23] hw/rdma: Add support for MAD packets, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 10/23] qapi: Define new QMP message for pvrdma, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 12/23] vmxnet3: Move some definitions to header file, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 13/23] hw/pvrdma: Make sure PCI function 0 is vmxnet3, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 11/23] hw/pvrdma: Add support to allow guest to configure GID table, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 14/23] hw/rdma: Initialize node_guid from vmxnet3 mac address, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 15/23] hw/pvrdma: Make device state depend on Ethernet function state,
Yuval Shaia <=
- [Qemu-devel] [PATCH v9 19/23] vl: Introduce shutdown_notifiers, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 16/23] hw/pvrdma: Fill all CQE fields, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 18/23] hw/rdma: Remove unneeded code that handles more that one port, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 17/23] hw/pvrdma: Fill error code in command's response, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 22/23] hw/rdma: Do not call rdma_backend_del_gid on an empty gid, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 20/23] hw/pvrdma: Clean device's resource when system is shutdown, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 23/23] docs: Update pvrdma device documentation, Yuval Shaia, 2018/12/21
- [Qemu-devel] [PATCH v9 21/23] hw/rdma: Do not use bitmap_zero_extend to free bitmap, Yuval Shaia, 2018/12/21