From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua0-f172.google.com (mail-ua0-f172.google.com [209.85.217.172]) by dpdk.org (Postfix) with ESMTP id 55BD11B3C8 for ; Thu, 12 Oct 2017 17:35:30 +0200 (CEST) Received: by mail-ua0-f172.google.com with SMTP id z4so3308555uaz.5 for ; Thu, 12 Oct 2017 08:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=Qh7qqFFTv8VtEEuaM6lLmPdOZ6VIsJ/yHGml2iZthh0=; b=P7F4B8hVX8vLiWYy8fDLjKJB1/ljsFw0krDBxf4mPSBtyN0s43XhdHCk7GmRD9FP3E fcARaKe6hqau6KEUvG6nPPoyALuO6qQCVLdN8wi4rgVWoRDA+YyDt4Gc4QujTgA02cxn BXmXykNpHdn+Xmjze0ZOmee8ms46VQKVczuTM= 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=Qh7qqFFTv8VtEEuaM6lLmPdOZ6VIsJ/yHGml2iZthh0=; b=pbCZiYuak18Eiw302BeXTcFhuFPqQGMgFUFGpD/4vjc24xNNF4jdkwxFvRTdcsCGI8 rn5Owq1PPiT3jhFWjFmrd86tekkYOnGFVYjZnyhuFj7I/F+YBZuuhxqrkozhS/PUJeR4 t9G5xr7nJHO986hu6lu26wtyRWHWP3CL0OU80ddU58SppVXkh7Te9i82uwYfDqEOrnjA o2jnWqykK2aH3dPxwQ2S01QPGUg8TdnYEb8XRCczxMpHwW6VCvc/MSWP95P2p6Z0lZn4 YTjAExVYW3/6+UJGA6BuTMA0cCPcKV0F7scne7uirB/IN2400r1bEjzaap1qREYA//7+ 0h+Q== X-Gm-Message-State: AMCzsaWc3Lae/QCyTCj9urek/9LA1CLrSlEIw9Gwm+SjlQ6lk/PrSEZ4 C4f1fKCC1Rj7Q3w1cjVnoyRmAMaW2IoFr30MWIsqkEtwcTs= X-Google-Smtp-Source: AOwi7QBb1hDMDAP0wZwgoMHqsoRCJevXrUveqSBCMlThVA7e+dU5GK2vDTHHxfNL0mWGL8U1LoMndBY2Hm2f3S6QL9Q= X-Received: by 10.176.10.29 with SMTP id q29mr580171uah.17.1507822529395; Thu, 12 Oct 2017 08:35:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.25.29 with HTTP; Thu, 12 Oct 2017 08:35:29 -0700 (PDT) From: Krishna Garapati Date: Thu, 12 Oct 2017 17:35:29 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] issue with multiple open & close of pcap dev X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 15:35:30 -0000 Hi, when closing & creating the new "net_pcap" device in the same instance fails on v17.05 because the device shows nb_rx_queues & nb_tx_queues = 0 from rte_eth_dev_info_get(). When the application configures the pcap dev first time, it works fine (rx & tx queues = 1) and then closes the device. When trying to configure a new pcap device with different configuration, The device has zero rx & tx queues because it seems to be saving the settings from rte_eth_dev_close(). This behavior is observed from v17.05 with the commit: "net/virtio: fix crash when closing twice" (id: 0e78cfddc0851a0a12da0257758fe011ec507495). Wondering if it's a bug or an expected behavior ?. /Krishna