From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f181.google.com (mail-ot0-f181.google.com [74.125.82.181]) by dpdk.org (Postfix) with ESMTP id 803C31075 for ; Thu, 16 Mar 2017 20:39:17 +0100 (CET) Received: by mail-ot0-f181.google.com with SMTP id i1so68246359ota.3 for ; Thu, 16 Mar 2017 12:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LX/GPncoXQADbZOp/mcRUZDIiuDHioW0bJQs2PUO8l4=; b=WJcBZ3QgJR/Tu9JNaOR79MKu/FBdQWeeNsIwjQgm+ycvqgM9F5nfGqk5jivTySfL0r rJwc1X6HyO9l/Ek/zotOWnr+S41GFjswXjKxwFrvctUVQOeytVm3zfXblXfUsnYHTWN1 6+vRF/5ZfdWPQyqxsgy+Fcs19zRmFalssh6WABRU7JUpY9n7yedUd6iXvLCYgDhtmSw4 QLUxI8DfxeyF0+wUybbw7MFMFz9o44Oo6O4u5YbXc3rjHBX8YpuAFiwMT+Es75HKImE2 hjFxpdxo6YZqi83dhLd4QwzlxcxnB1LZWRNb1BO5LzsL4plzCQTSG61WZDM3n+aVkURS yG9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LX/GPncoXQADbZOp/mcRUZDIiuDHioW0bJQs2PUO8l4=; b=SxAvmmQECeFksiQoDnq7Jz5rB7AsjArhg5VEm2lO74mgeUC9MSK5YD4vkurav5SvKv 0Q2mrCysAGgsdJT17ldi3lNV9XYC3YHQJH3doWdnlVHpvuS1U01Eb34jt/cNUv/wNpOh W1PTIfSeDhYmtq8oe0y366cm/p8s4SrhCm+NUpkDIBQB1CsH8UHoXbWntiKin6paZwaE zXP8okYo8XSIa7GWrPBr23VqwpZ/8OrO0n9IL3RBBOYV94+/+tdYqoCxz7o6ve86G33n Z3EbJ+ZY2QIyeivfbZktC/pVMkdr7gMqTwGDukIOpYtnjlUlHpy6vl8RHiNz6xwwZrWq 62HA== X-Gm-Message-State: AFeK/H0kGDuZl+Kxp1Kv1+nte4KqyPPlu0qPjaa9DZiTsIChYjrnMhKfpE3Je3iE/6RxcTslAzIyhnLygFG53A== X-Received: by 10.202.229.139 with SMTP id c133mr4934906oih.152.1489693156641; Thu, 16 Mar 2017 12:39:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.55.195 with HTTP; Thu, 16 Mar 2017 12:39:16 -0700 (PDT) From: Gopakumar Choorakkot Edakkunni Date: Thu, 16 Mar 2017 12:39:16 -0700 Message-ID: To: dev@dpdk.org, Yuanhan Liu , huawei.xie@intel.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] virtio "how to restart applications" - //dpdk.org/doc/virtio-net-pmd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2017 19:39:17 -0000 So the doc says we should call rte_eth_dev_close() *before* going down. And I know that especially in dpdk-virtionet in the guest + ovs-dpdk in the host, the ovs ends up getting stalled/stuck (!!) if I dont close the port before starting() it when the guest dpdk process comes back up. Considering that this not done properly can screw up the HOST ovs, and I want to do everything possible to avoid that, I want to be 200% sure that I call close even if my process gets a kill -9 .. So obviously the only way of doing that is to close the port when the dpdk process comes back up and *before* we init the port. rte_eth_dev_close() is not capable of doing that as it expects the port parameters to be initialized etc.. before it can be called. Any other suggestions on what can be done to close on restart rather than close on going down ? Thought of bouncing this by the alias before I add a version of close myself that can do this close-on-restart Rgds, Gopa.