From b421a73c3d0d7ca7a97d85900ae5b6cc455b8870 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 28 Sep 2020 17:27:56 +0200 Subject: [PATCH] m3: virtual servers for switching to 1 giga (stop server does not know dr) --- .../mythen3DetectorServer/slsDetectorFunctionList.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c index 4b6238b64..ff7c210a2 100644 --- a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c @@ -1592,7 +1592,14 @@ int enableTenGigabitEthernet(int val) { else { bus_w(addr, bus_r(addr) & (~PKT_CONFIG_1G_INTERFACE_MSK)); } - updatePacketizing(); + // stop server does not know dr in virtual mode +#ifdef VIRTUAL + if (isControlServer) { +#endif + updatePacketizing(); +#ifdef VIRTUAL + } +#endif } int oneG = ((bus_r(addr) & PKT_CONFIG_1G_INTERFACE_MSK) >> PKT_CONFIG_1G_INTERFACE_OFST);